Navigation
API > API/Plugins > API/Plugins/PCG
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/PCGGraph.h |
| Include | #include "PCGGraph.h" |
Syntax
USTRUCT&40;&41;
struct FPCGOverrideInstancedPropertyBag
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FInstancedPropertyBag | Parameters | ||
| TSet< FGuid > | PropertiesIDsOverridden |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | IsPropertyOverridden
(
const FProperty* InProperty |
Return if the property is currently marked overridden. | |
| bool | IsPropertyOverriddenAndNotDefault
(
const FProperty* InProperty, |
Return if the property is currently marked overridden and has a different value than its default value. | |
| bool | IsValid () |
Return if the parameters are valid | |
| 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. | |
| bool | RefreshParameters
(
const FInstancedPropertyBag* ParentUserParameters, |
Handle the sync between the parent parameters and the overrides. | |
| void | Reset () |
Reset the struct. | |
| void | ResetPropertyToDefault
(
const FProperty* InProperty, |
Reset overridden property to its parent value. | |
| bool | UpdatePropertyOverride
(
const FProperty* InProperty, |
Add/Remove given property from overrides, and reset its value if it is removed. |