AActor::Destroy

Destroy this actor.

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

bool Destroy
(
    bool bNetForce,
    bool bShouldModifyLevel
)

Remarks

Destroy this actor. Returns true the actor is destroyed or already marked for destruction, false if indestructible. Destruction is latent. It occurs at the end of the tick.

Returns

true if destroyed or already marked for destruction, false if indestructible.

Parameters

Parameter

Description

bNetForce

[opt] Ignored unless called during play. Default is false.

bShouldModifyLevel

[opt] If true, Modify() the level before removing the actor. Default is true.

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