Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/ActorPartition > API/Runtime/Engine/ActorPartition/UActorPartitionSubsystem > API/Runtime/Engine/ActorPartition/UActorPartitionSubsystem/GetActor
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/ActorPartition/ActorPartitionSubsystem.h |
| Include | #include "ActorPartition/ActorPartitionSubsystem.h" |
| Source | /Engine/Source/Runtime/Engine/Private/ActorPartition/ActorPartitionSubsystem.cpp |
APartitionActor * GetActor
(
const TSubclassOf < APartitionActor > & InActorClass,
const FCellCoord & InCellCoords,
bool bInCreate,
const FGuid & InGuid,
uint32 InGridSize,
bool bInBoundsSearch,
TFunctionRef < void *)> InActorCreated
)
Remarks
Returns a matching actor based on the parameters being provided
Parameters
| Name | Description |
|---|---|
| InActorClass | The type of actor we are searching for. |
| InCellCoords | The cell coordinate of that actor. |
| bInCreate | If the actor doesn't existe should we created it. |
| InGuid | Optional, if multiple actors of the same InActorClass exist user can provide Guid id. |
| InGridSize | Optional, if not provided the InActorClass CDO will be used to determine GridSize. |
| bInBoundsSearch | Optional, if not specified existing actors will be searched in the cell bounds only. |