unreal.DetachmentRule

class unreal.DetachmentRule

Bases: EnumBase

Rules for detaching components - needs to be kept synced to EAttachmentRule

C++ Source:

  • Module: Engine

  • File: EngineTypes.h

KEEP_RELATIVE: DetachmentRule

Keeps current relative transform.

Type:

0

KEEP_WORLD: DetachmentRule

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

Type:

1