AActor::K2_DetachFromActor

Detaches the RootComponent of this Actor from any SceneComponent it is currently attached to.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h

Include

#include "GameFramework/Actor.h"

Source

/Engine/Source/Runtime/Engine/Private/Actor.cpp

Syntax

void K2_DetachFromActor
(
    EDetachmentRule LocationRule,
    EDetachmentRule RotationRule,
    EDetachmentRule ScaleRule
)

Remarks

Detaches the RootComponent of this Actor from any SceneComponent it is currently attached to.

Parameters

Parameter

Description

LocationRule

How to handle translation when detaching.

RotationRule

How to handle rotation when detaching.

ScaleRule

How to handle scale when detaching.

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