EEndPlayReason::Type

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

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h

Include

#include "Engine/EngineTypes.h"

Syntax

namespace EEndPlayReason
{
    enum Type
    {
        Destroyed,
        LevelTransition,
        EndPlayInEditor,
        RemovedFromWorld,
        Quit,
    }
}

Values

Name

Description

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.

Remarks

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

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