Navigation
API > API/Plugins > API/Plugins/PCG
A struct used to store a default value locally for use with inline constant values.
| Name | FPCGDefaultValueContainer |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Helpers/PCGDefaultValueContainer.h |
| Include Path | #include "Helpers/PCGDefaultValueContainer.h" |
Syntax
USTRUCT (BlueprintType )
struct FPCGDefaultValueContainer
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActivatedProperties | TSet< FName > | A mapping of which properties are currently active. | Helpers/PCGDefaultValueContainer.h | |
| PropertyBag | FInstancedPropertyBag | The handling and storage of dynamic properties. | Helpers/PCGDefaultValueContainer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FProperty * ConvertPropertyType
(
FName PropertyName, |
Change the metadata subtype for the specified FProperty. | Helpers/PCGDefaultValueContainer.h | |
const FProperty * CreateNewProperty
(
FName PropertyName, |
Creates a new FProperty with the specified type. | Helpers/PCGDefaultValueContainer.h | |
const UPCGParamData * CreateParamData
(
FPCGContext* Context, |
Helper that creates a Param Data with the typed property as an attribute attached to the metadata. | Helpers/PCGDefaultValueContainer.h | |
const FProperty * FindProperty
(
FName PropertyName |
Finds an FProperty in the property bag. | Helpers/PCGDefaultValueContainer.h | |
EPCGMetadataTypes GetCurrentPropertyType
(
FName PropertyName |
Find the current metadata subtype of the specified FProperty. | Helpers/PCGDefaultValueContainer.h | |
| Get the current value of the property as a string. | Helpers/PCGDefaultValueContainer.h | ||
bool IsPropertyActivated
(
FName PropertyName |
The property exists and is set to active. | Helpers/PCGDefaultValueContainer.h | |
void RemoveProperty
(
FName PropertyName |
Removes the property in the property bag, if it exists. | Helpers/PCGDefaultValueContainer.h | |
void Reset() |
Reset the container to empty. | Helpers/PCGDefaultValueContainer.h | |
void SerializeCrc
(
FArchiveCrc32& Crc32 |
Serialize the properties into a Crc32 to be used for caching purposes. | Helpers/PCGDefaultValueContainer.h | |
bool SetPropertyActivated
(
FName PropertyName, |
Sets the property as currently active or inactive. Returns true if a change was made. | Helpers/PCGDefaultValueContainer.h | |
bool SetPropertyValueFromString
(
FName PropertyName, |
Sets the FProperty's value directly with a string input. | Helpers/PCGDefaultValueContainer.h |