Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UWorld
Description
Tries to stop gameplay by sending EndPlay to all actors in the world. This will call BeginTearingDown if it has not been called yet.
| Name | EndPlay |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/World.h |
| Include Path | #include "Engine/World.h" |
| Source | /Engine/Source/Runtime/Engine/Private/World.cpp |
bool EndPlay
(
EEndPlayReason::Type EndPlayReason
)
true if this actually stopped play (BegunPlay will return false)
Parameters
| Name | Remarks |
|---|---|
| EndPlayReason | The reason that play is ending |