Navigation
API > API/Plugins > API/Plugins/InstancedActors > API/Plugins/InstancedActors/UInstancedActorsData
References
| Module | InstancedActors |
| Header | /Engine/Plugins/Runtime/InstancedActors/Source/InstancedActors/Public/InstancedActorsData.h |
| Include | #include "InstancedActorsData.h" |
| Source | /Engine/Plugins/Runtime/InstancedActors/Source/InstancedActors/Private/InstancedActorsData.cpp |
AActor * UnlinkActor
(
FInstancedActorsInstanceIndex InstanceToUnlink
)
Remarks
Unlink InstanceToUnlink's Actor (if any) from Mass by clearing the entities reference to it and disconnecting from any subscribed actor signals, essentially 'forgetting' about the actor.
Called by EjectInstanceActor to transfer the actor's management to persistence system and OnInstancedActorDestroyed to allow the Actor to complete death process in the background after we've destroyed the Mass entity (which would have otherwise force-destroyed the associated actor) The unlinked actor (if one was currently linked, nullptr otherwise)