Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h |
Include |
#include "Engine/EngineTypes.h" |
enum EAttachmentRule
{
KeepRelative,
KeepWorld,
SnapToTarget,
}
Name |
Description |
---|---|
KeepRelative |
Keeps current relative transform as the relative transform to the new parent. |
KeepWorld |
Automatically calculates the relative transform such that the attached component maintains the same world transform. |
SnapToTarget |
Snaps transform to the attach point |
Rules for attaching components - needs to be kept synced to EDetachmentRule