Navigation
API > API/Plugins > API/Plugins/LevelStreamingPersistence > API/Plugins/LevelStreamingPersistence/ULevelStreamingPersistenceManage-
Description
Captures persistent values for the actor, destroys it and respawns it into another level. Converting a map-placed actor into a runtime respawned one lets it cross boundaries. Deciding the correct method to mitigate visual pop, and restoring references, is left up to the callee. If the actor is map-placed, its class must be configured for persistent destruction. The actor class must be configured to be respawnable.
In specific cases such as world already in tear-down, the respawning of the actor may fail while the original actor is still destroyed.
| Name | RecreateActorInLevel |
| 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")
AActor * RecreateActorInLevel
(
AActor * InActor,
ULevel * NewOwningLevel
)