Navigation
API > API/Plugins > API/Plugins/PCG
Represents a single property override on the provided object. Applies an override function to read the InputAccessor and write its value to the OutputAccessor.
The InputAccessor's InputKeys are created from the given SourceData and InputSelector.
| Name | FPCGObjectSingleOverride |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGObjectPropertyOverride.h |
| Include Path | #include "Metadata/PCGObjectPropertyOverride.h" |
Syntax
struct FPCGObjectSingleOverride
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Can't copy but can move. | Metadata/PCGObjectPropertyOverride.h | ||
FPCGObjectSingleOverride
(
const FPCGObjectSingleOverride& |
Metadata/PCGObjectPropertyOverride.h | ||
| Metadata/PCGObjectPropertyOverride.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ApplyOverrideFunction | bool(FPCGObjectSingleOverride::*)(int32, IPCGAttributeAccessorKeys &) | InputKeyIndex, OutputKeys. | Metadata/PCGObjectPropertyOverride.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bWillNeedLoading | bool | Metadata/PCGObjectPropertyOverride.h | ||
| EditPropertyChain | FEditPropertyChain | Metadata/PCGObjectPropertyOverride.h | ||
| InputKeys | TUniquePtr< const IPCGAttributeAccessorKeys > | Metadata/PCGObjectPropertyOverride.h | ||
| ObjectOverrideFunction | ApplyOverrideFunction | Metadata/PCGObjectPropertyOverride.h | ||
| ObjectOverrideInputAccessor | TUniquePtr< const IPCGAttributeAccessor > | Metadata/PCGObjectPropertyOverride.h | ||
| ObjectOverrideInputSelector | FPCGAttributePropertySelector | Metadata/PCGObjectPropertyOverride.h | ||
| ObjectOverrideOutputAccessor | TUniquePtr< IPCGAttributeAccessor > | Metadata/PCGObjectPropertyOverride.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Apply
(
int32 InputKeyIndex, |
Applies a single property override to the object by reading from the InputAccessor at the given KeyIndex, and writing to the OutputKey which represents the object property. | Metadata/PCGObjectPropertyOverride.h | |
void GatherAllOverridesToLoad
(
TArray< FSoftObjectPath >& OutObjectsToLoad |
Gathers overrides into an array, if they need loading. | Metadata/PCGObjectPropertyOverride.h | |
const FPCGAttributePropertySelector & GetInputSelector() |
Metadata/PCGObjectPropertyOverride.h | ||
void Initialize
(
const FPCGAttributePropertySelector& InputSelector, |
Initialize the single object override. | Metadata/PCGObjectPropertyOverride.h | |
bool IsValid() |
Returns true if initialization succeeded in creating the accessors and accessor keys. | Metadata/PCGObjectPropertyOverride.h | |
void PostApply
(
UObject* TargetObject |
To be called after the Apply, if it is needed to propagate the change to the target object. | Metadata/PCGObjectPropertyOverride.h | |
void PreApply
(
UObject* TargetObject |
To be called before the Apply, if it is needed to propagate the change to the target object. | Metadata/PCGObjectPropertyOverride.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPCGObjectSingleOverride & operator=
(
const FPCGObjectSingleOverride& |
Metadata/PCGObjectPropertyOverride.h | ||
| Metadata/PCGObjectPropertyOverride.h |