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
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 | ||
| InputKeys | TUniquePtr< const IPCGAttributeAccessorKeys > | Metadata/PCGObjectPropertyOverride.h | ||
| ObjectOverrideFunction | ApplyOverrideFunction | Metadata/PCGObjectPropertyOverride.h | ||
| ObjectOverrideInputAccessor | TUniquePtr< const IPCGAttributeAccessor > | 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 | |
void Initialize
(
const FPCGAttributePropertySelector& InputSelector, |
Initialize the single object override. Call before using Apply(InputKeyIndex, OutputKey). | Metadata/PCGObjectPropertyOverride.h | |
bool IsValid() |
Returns true if initialization succeeded in creating the accessors and accessor keys. | Metadata/PCGObjectPropertyOverride.h |