Navigation
API > API/Runtime > API/Runtime/Engine
Rules for attaching components - needs to be kept synced to EDetachmentRule
| Name | EAttachmentRule |
| Type | enum |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h |
| Include Path | #include "Engine/EngineTypes.h" |
Syntax
enum EAttachmentRule
{
KeepRelative,
KeepWorld,
SnapToTarget,
}
Values
| Name | Remarks |
|---|---|
| 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 |