Actor Getters
Functions to retrieve actors from your level
Functions for retrieving actors from the current level based on various criteria.
All getter functions support SelectionMethod (All, Selected, Unselected) and Inclusivity (Inclusive, Exclusive) parameters.
GetActorsByClass
Returns a list of actors based on the provided class.

Parameters
| Name | Type | Description |
|---|---|---|
ActorClass | TSubclassOf<AActor> | The class of actors to find |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
Returns
| Name | Type | Description |
|---|---|---|
FoundActors | TArray<AActor*> | Actors matching the criteria |
GetActorsByName
Returns actors matching the provided name.

Parameters
| Name | Type | Description |
|---|---|---|
ActorName | FString | Name to search for |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
Returns
| Name | Type | Description |
|---|---|---|
FoundActors | TArray<AActor*> | Actors matching the criteria |
GetActorsByMaterial
Returns actors using the specified material. Only returns actors with Static Mesh Components.

Parameters
| Name | Type | Description |
|---|---|---|
Material | UMaterialInterface* | Material reference to search for |
MaterialSource | EUDSearchLocation | Where to search (Source/Override) |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
Returns
| Name | Type | Description |
|---|---|---|
FoundActors | TArray<AActor*> | Actors using the material |
GetActorsByMaterialName
Returns actors using a material with the specified name.

Parameters
| Name | Type | Description |
|---|---|---|
MaterialName | FString | Material name to search for |
MaterialSource | EUDSearchLocation | Where to search |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
GetActorsByVertexCount
Returns actors within the specified vertex count range.

Parameters
| Name | Type | Description |
|---|---|---|
From | int32 | Minimum vertex count |
To | int32 | Maximum vertex count |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
GetActorsByTriCount
Returns actors within the specified triangle count range.

Parameters
| Name | Type | Description |
|---|---|---|
From | int32 | Minimum triangle count |
To | int32 | Maximum triangle count |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
GetActorsByBoundingBox
Returns actors within the specified bounding box.

Parameters
| Name | Type | Description |
|---|---|---|
Min | FVector | Minimum point of bounding box |
Max | FVector | Maximum point of bounding box |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
GetActorsByMeshSize
Returns actors with meshes within the specified size range.

Parameters
| Name | Type | Description |
|---|---|---|
From | float | Minimum mesh size |
To | float | Maximum mesh size |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
GetActorsByWorldLocation
Returns actors within a radius of the specified world location.

Parameters
| Name | Type | Description |
|---|---|---|
WorldLocation | FVector | Center point to search from |
Radius | float | Search radius |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
GetActorsByLODCount
Returns actors within the specified LOD count range.

Parameters
| Name | Type | Description |
|---|---|---|
From | int32 | Minimum LOD count |
To | int32 | Maximum LOD count |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
GetActorsByNaniteEnabled
Returns actors based on their Nanite state.

Parameters
| Name | Type | Description |
|---|---|---|
bNaniteEnabled | bool | true for Nanite-enabled, false for disabled |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
GetActorsByLightmapResolution
Returns actors within the specified lightmap resolution range.

Parameters
| Name | Type | Description |
|---|---|---|
From | int32 | Minimum lightmap resolution |
To | int32 | Maximum lightmap resolution |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
GetActorsByMobility
Returns actors with the specified mobility setting.

Parameters
| Name | Type | Description |
|---|---|---|
Mobility | EComponentMobility::Type | Static, Stationary, or Movable |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
GetActorsByStaticMesh
Returns actors using the specified Static Mesh.

Parameters
| Name | Type | Description |
|---|---|---|
StaticMesh | UStaticMesh* | Static Mesh reference |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
GetActorsByStaticMeshName
Returns actors using a Static Mesh with the specified name.

Parameters
| Name | Type | Description |
|---|---|---|
StaticMeshName | FString | Static Mesh name to search for |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
GetActorsByTexture
Returns actors using the specified texture.

Parameters
| Name | Type | Description |
|---|---|---|
Texture | UTexture2D* | Texture reference |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
GetActorsByTextureName
Returns actors using a texture with the specified name.

Parameters
| Name | Type | Description |
|---|---|---|
TextureName | FString | Texture name to search for |
SelectionMethod | EUDSelectionMethod | Filter by selection state |
Inclusivity | EUDInclusivity | Include or exclude matching actors |
GetInvalidActors
Returns a list of invalid actors in the level.

Returns
| Name | Type | Description |
|---|---|---|
FoundActors | TArray<AActor*> | Invalid actors found |