unreal.AttachmentRule

class unreal.AttachmentRule

Bases: EnumBase

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

C++ Source:

  • Module: Engine

  • File: EngineTypes.h

KEEP_RELATIVE: AttachmentRule

Keeps current relative transform as the relative transform to the new parent.

Type:

0

KEEP_WORLD: AttachmentRule

Automatically calculates the relative transform such that the attached component maintains the same world transform.

Type:

1

SNAP_TO_TARGET: AttachmentRule

Snaps transform to the attach point

Type:

2