Navigation
API > API/Plugins > API/Plugins/LevelStreamingPersistence > API/Plugins/LevelStreamingPersistence/ULevelStreamingPersistenceManage-
Description
Ejects a map-placed actor: it will be absent on next level reload, but stay alive for the current session. The actor class must be eligible for persistent destruction, see Level Streaming Persistence Settings. Use cases: treat the actor as destroyed while it's alive for animation purposes.
The actor becomes eligible for runtime respawning if it passes your other checks, i.e. RuntimeRespawnedActorClasses and OnShouldPersistRuntimeActor. For handing over an actor for runtime respawning, also see RecreateActorInLevel and RecreateActorInPersistentLevel.
| Name | EjectPlacedActor |
| Type | function |
| Header File | /Engine/Plugins/Runtime/LevelStreamingPersistence/Source/LevelStreamingPersistence/Public/LevelStreamingPersistenceManager.h |
| Include Path | #include "LevelStreamingPersistenceManager.h" |
| Source | /Engine/Plugins/Runtime/LevelStreamingPersistence/Source/LevelStreamingPersistence/Private/LevelStreamingPersistenceManager.cpp |
UFUNCTION (BlueprintCallable, Category="Level Streaming Persistence")
bool EjectPlacedActor
(
AActor * InActor
)