Navigation
API > API/Plugins > API/Plugins/PCG
Represents a set of property overrides for the provided object. Provide a SourceData to read from, and a collection of ObjectPropertyOverrides matching the TemplateObject's class properties.
| Name | FPCGObjectOverrides |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGObjectPropertyOverride.h |
| Include Path | #include "Metadata/PCGObjectPropertyOverride.h" |
Syntax
template<typename T>
struct FPCGObjectOverrides
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPCGObjectOverrides
(
T* TemplateObject |
Metadata/PCGObjectPropertyOverride.h | ||
FPCGObjectOverrides
(
const FPCGObjectOverrides& |
Can't copy but can move. | Metadata/PCGObjectPropertyOverride.h | |
| Metadata/PCGObjectPropertyOverride.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bInitialized | bool | Metadata/PCGObjectPropertyOverride.h | ||
| bPropagateEditChangeEvent | bool | Metadata/PCGObjectPropertyOverride.h | ||
| CachedOutputObject | UObject * | Metadata/PCGObjectPropertyOverride.h | ||
| ObjectSingleOverrides | TArray< FPCGObjectSingleOverride > | Metadata/PCGObjectPropertyOverride.h | ||
| OutputKey | FPCGAttributeAccessorKeysSingleObjectPtr< T > | Metadata/PCGObjectPropertyOverride.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Apply
(
int32 InputKeyIndex |
Applies each 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 | |
| Utility function to get all the valid input selectors. | Metadata/PCGObjectPropertyOverride.h | ||
void Initialize
(
const TArray< FPCGObjectPropertyOverrideDescription >& OverrideDescriptions, |
Initialize the object overrides. Call before using Apply(InputKeyIndex). | Metadata/PCGObjectPropertyOverride.h | |
bool IsValid() |
Returns true if we have any override to apply | Metadata/PCGObjectPropertyOverride.h | |
void UpdateTemplateObject
(
T* InTemplateObject |
Update the template object, only if it was already initialized | Metadata/PCGObjectPropertyOverride.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPCGObjectOverrides & operator=
(
const FPCGObjectOverrides& |
Metadata/PCGObjectPropertyOverride.h | ||
| Metadata/PCGObjectPropertyOverride.h |