Navigation
API > API/Plugins > API/Plugins/PCG
Extended version of FInstancedPropertyBag, to support overrides and have a custom UI for it Must only be used with PCGGraphInstances. TODO: Should be made generic and moved to ScriptUtils.
| Name | FPCGOverrideInstancedPropertyBag |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/PCGGraph.h |
| Include Path | #include "PCGGraph.h" |
Syntax
USTRUCT ()
struct FPCGOverrideInstancedPropertyBag
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Parameters | FInstancedPropertyBag | PCGGraph.h |
|
|
| PropertiesIDsOverridden | TSet< FGuid > | PCGGraph.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FString GetDefaultPropertyValueForEditor
(
const FProperty* InProperty, |
Get parent value of overridden property for re-importing. | PCGGraph.h | |
bool IsPropertyOverridden
(
const FProperty* InProperty |
Return if the property is currently marked overridden. | PCGGraph.h | |
bool IsPropertyOverriddenAndNotDefault
(
const FProperty* InProperty, |
Return if the property is currently marked overridden and has a different value than its default value. | PCGGraph.h | |
bool IsValid() |
Return if the parameters are valid | PCGGraph.h | |
void MigrateToNewBagInstance
(
const FInstancedPropertyBag& NewBagInstance |
Will migrate to a new property bag instanced, and will remove porperties that doesn't exists anymore or have changed types. | PCGGraph.h | |
bool RefreshParameters
(
const FInstancedPropertyBag* ParentUserParameters, |
Handle the sync between the parent parameters and the overrides. | PCGGraph.h | |
void Reset() |
Reset the struct. | PCGGraph.h | |
bool ResetPropertyToDefault
(
const FProperty* InProperty, |
Reset overridden property to its parent value. Return true if the value was different. | PCGGraph.h | |
bool UpdatePropertyOverride
(
const FProperty* InProperty, |
Add/Remove given property from overrides, and reset its value if it is removed. | PCGGraph.h |