Navigation
API > API/Plugins > API/Plugins/PCG
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
| Name | FPCGSelectionKey |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Elements/PCGActorSelector.h |
| Include Path | #include "Elements/PCGActorSelector.h" |
Syntax
USTRUCT ()
struct FPCGSelectionKey
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPCGSelectionKey
(
TSubclassOf< UObject > InSelectionClass |
Elements/PCGActorSelector.h | ||
FPCGSelectionKey
(
FName InTag |
Elements/PCGActorSelector.h | ||
FPCGSelectionKey
(
EPCGActorFilter InFilter |
For all filters others than AllWorldActor. For AllWorldActors Filter, use the other constructors. | Elements/PCGActorSelector.h | |
| Elements/PCGActorSelector.h | |||
FPCGSelectionKey
(
const FPCGActorSelectorSettings& InActorSelector |
For all filters except FromInput. | Elements/PCGActorSelector.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActorFilter | EPCGActorFilter | Elements/PCGActorSelector.h | ||
| CustomKey | TInstancedStruct< FPCGCustomSelectionKey > | Elements/PCGActorSelector.h | ||
| ObjectPath | FSoftObjectPath | If the Selection is ByPath, contain the path to select. | Elements/PCGActorSelector.h | |
| OptionalExtraDependency | TObjectPtr< const UClass > | If it should track a specific object dependency instead of an actor. For example, GetActorData with GetPCGComponent data. | Elements/PCGActorSelector.h | |
| Selection | EPCGActorSelection | Elements/PCGActorSelector.h | ||
| SelectionClass | TSubclassOf< UObject > | Elements/PCGActorSelector.h | ||
| Tag | FName | Elements/PCGActorSelector.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const UObject * GetObjectFromPath() |
Elements/PCGActorSelector.h | ||
bool IsMatching
(
const UObject* InObject, |
Elements/PCGActorSelector.h | ||
bool IsMatching
(
const FPCGSelectionKey& InSelectionKey, |
Elements/PCGActorSelector.h | ||
bool IsMatching
(
const UObject* InObject, |
Elements/PCGActorSelector.h | ||
bool IsMatching
(
const UObject* InObject, |
Deprecated methods | Elements/PCGActorSelector.h | |
bool IsMatching
(
const FPCGSelectionKey& InSelectionKey, |
Elements/PCGActorSelector.h | ||
bool IsMatching
(
const UObject* InObject, |
Elements/PCGActorSelector.h | ||
void SetExtraDependency
(
const UClass* InExtraDependency |
Elements/PCGActorSelector.h | ||
void UpdateAfterTagChange() |
Elements/PCGActorSelector.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FPCGSelectionKey CreateFromObjectPtr
(
const UObject* InObject |
Elements/PCGActorSelector.h | ||
static FPCGSelectionKey CreateFromPath
(
const FSoftObjectPath& InObjectPath |
Elements/PCGActorSelector.h | ||
static FPCGSelectionKey CreateFromPath
(
FSoftObjectPath&& InObjectPath |
Elements/PCGActorSelector.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator==
(
const FPCGSelectionKey& InOther |
Elements/PCGActorSelector.h |