Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Elements
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Elements/PCGActorSelector.h |
| Include | #include "Elements/PCGActorSelector.h" |
Syntax
USTRUCT ()
struct FPCGSelectionKey
Remarks
Structure to specify a selection criteria for an object/actor Object can be selected using the EPCGActorSelection::ByClass or EPCGActorSelection::ByPath Actors have more options for selection with Self/Parent/Root/Original and also EPCGActorSelection::ByTag
Variables
| Type | Name | Description | |
|---|---|---|---|
| EPCGActorFilter | ActorFilter | ||
| FSoftObjectPath | ObjectPath | If the Selection is ByPath, contain the path to select. | |
| TObjectPtr< const UClass > | OptionalExtraDependency | If it should track a specific object dependency instead of an actor. For example, GetActorData with GetPCGComponent data. | |
| EPCGActorSelection | Selection | ||
| TSubclassOf< UObject > | SelectionClass | ||
| FName | Tag |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FPCGSelectionKey
(
EPCGActorFilter InFilter |
For all filters others than AllWorldActor. For AllWorldActors Filter, use the other constructors. | ||
FPCGSelectionKey
(
FName InTag |
|||
FPCGSelectionKey
(
TSubclassOf< UObject > InSelectionClass |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FPCGSelectionKey | CreateFromPath
(
const FSoftObjectPath& InObjectPath |
||
| FPCGSelectionKey | CreateFromPath
(
FSoftObjectPath&& InObjectPath |
||
| bool | IsMatching
(
const UObject* InObject, |
||
| bool | IsMatching
(
const UObject* InObject, |
||
| void | SetExtraDependency
(
const UClass* InExtraDependency |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator==
(
const FPCGSelectionKey& InOther |