EAttachmentRule

Rules for attaching components - needs to be kept synced to EDetachmentRule

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h

Include

#include "Engine/EngineTypes.h"

Syntax

enum EAttachmentRule
{
    KeepRelative,
    KeepWorld,
    SnapToTarget,
}

Values

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

Remarks

Rules for attaching components - needs to be kept synced to EDetachmentRule

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss