unreal.EndPlayReason

class unreal.EndPlayReason

Bases: EnumBase

Specifies why an actor is being deleted/removed from a level

C++ Source:

  • Module: Engine

  • File: EngineTypes.h

DESTROYED: EndPlayReason

When the Actor or Component is explicitly destroyed.

Type:

0

END_PLAY_IN_EDITOR: EndPlayReason

When the world is being unloaded because PIE is ending.

Type:

2

LEVEL_TRANSITION: EndPlayReason

When the world is being unloaded for a level transition.

Type:

1

QUIT: EndPlayReason

When the application is being exited.

Type:

4

REMOVED_FROM_WORLD: EndPlayReason

When the level it is a member of is streamed out.

Type:

3