Navigation
API > API/Runtime > API/Runtime/Engine
Specifies why an actor is being deleted/removed from a level
| Name | EEndPlayReason::Type |
| Type | enum |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h |
| Include Path | #include "Engine/EngineTypes.h" |
Syntax
namespace EEndPlayReason
{
enum Type
{
Destroyed,
LevelTransition,
EndPlayInEditor,
RemovedFromWorld,
Quit,
}
}
Values
| Name | Remarks |
|---|---|
| Destroyed | When the Actor or Component is explicitly destroyed. |
| LevelTransition | When the world is being unloaded for a level transition. |
| EndPlayInEditor | When the world is being unloaded because PIE is ending. |
| RemovedFromWorld | When the level it is a member of is streamed out. |
| Quit | When the application is being exited. |