Navigation
API > API/Plugins > API/Plugins/InstancedActors > API/Plugins/InstancedActors/UInstancedActorsData
Description
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)
| Name | UnlinkActor |
| Type | function |
| Header File | /Engine/Plugins/Runtime/InstancedActors/Source/InstancedActors/Public/InstancedActorsData.h |
| Include Path | #include "InstancedActorsData.h" |
| Source | /Engine/Plugins/Runtime/InstancedActors/Source/InstancedActors/Private/InstancedActorsData.cpp |
AActor * UnlinkActor
(
FInstancedActorsInstanceIndex InstanceToUnlink
)
The unlinked actor (if one was currently linked, nullptr otherwise)