Navigation
API > API/Plugins > API/Plugins/InstancedActors > API/Plugins/InstancedActors/UInstancedActorsSubsystem
Description
Checks whether there are any instanced actors representing ActorClass or its subclasses inside QueryBounds. The check doesn't differentiate between hydrated and dehydrated actors (i.e. whether there's an actor instance associated with the instance or not).
| Name | HasInstancesOfClass |
| Type | function |
| Header File | /Engine/Plugins/Runtime/InstancedActors/Source/InstancedActors/Public/InstancedActorsSubsystem.h |
| Include Path | #include "InstancedActorsSubsystem.h" |
| Source | /Engine/Plugins/Runtime/InstancedActors/Source/InstancedActors/Private/InstancedActorsSubsystem.cpp |
bool HasInstancesOfClass
(
const FBox & QueryBounds,
TSubclassOf < AActor > ActorClass,
const bool bTestActorsIfSpawned,
const EInstancedActorsBulkLODMask AllowedLODs
) const
Parameters
| Name | Remarks |
|---|---|
| bTestActorsIfSpawned | if true then when an instance is found to overlap given bounds, and it has an actor spawned associated with it, then the actor itself will be tested against the bounds for more precise test. |
| AllowedLODs | if provided will be used to filter out InstancedActorData that are at LOD not matching the flags in AllowedLODs |