Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/StructUtils
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/StructUtils/PropertyBag.h |
| Include | #include "StructUtils/PropertyBag.h" |
Syntax
USTRUCT ()
struct FInstancedPropertyBag
Variables
| Type | Name | Description | |
|---|---|---|---|
| FInstancedStruct | Value |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FInstancedPropertyBag
(
const FInstancedPropertyBag& Other |
|||
FInstancedPropertyBag
(
FInstancedPropertyBag&& Other |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddContainerProperty
(
const FName InName, |
Adds a new container property to the bag. | |
| void | AddContainerProperty
(
const FName InName, |
Adds a new container property to the bag. | |
| void | AddProperties
(
const TConstArrayView< FPropertyBagPropertyDesc > Descs |
Adds properties to the bag. | |
| void | AddProperty
(
const FName InName, |
Adds a new property to the bag. | |
| void | AddProperty
(
const FName InName, |
Adds a new property to the bag. | |
| void | AddStructReferencedObjects
(
FReferenceCollector& Collector |
||
| void | CopyMatchingValuesByID
(
const FInstancedPropertyBag& NewDescs |
Copies matching property values from another bag of potentially mismatching layout. | |
| const FPropertyBagPropertyDesc * | FindPropertyDescByID
(
const FGuid ID |
Returns property descriptor by specified name. | |
| const FPropertyBagPropertyDesc * | FindPropertyDescByName
(
const FName Name |
Returns property descriptor by specified ID. | |
| TValueOrError< const FPropertyBagArrayRef, EPropertyBagResult > | GetArrayRef
(
const FName Name |
Returns helper class to access an array property. | |
| TValueOrError< FPropertyBagArrayRef, EPropertyBagResult > | GetMutableArrayRef
(
const FName Name |
Returns helper class to modify and access an array property. | |
| TValueOrError< FPropertyBagSetRef, EPropertyBagResult > | GetMutableSetRef
(
const FName Name |
Returns helper class to modify and access a set property. | |
| FStructView | |||
| void * | GetMutableValueAddress
(
const FPropertyBagPropertyDesc* Desc |
||
| int32 | Returns number of the Properties in this Property Bag | ||
| void | GetPreloadDependencies
(
TArray< UObject* >& OutDeps |
||
| const UPropertyBag * | |||
| TValueOrError< const FPropertyBagSetRef, EPropertyBagResult > | Returns helper class to access a set property. | ||
| FConstStructView | GetValue () |
||
| const void * | GetValueAddress
(
const FPropertyBagPropertyDesc* Desc |
||
| TValueOrError< bool, EPropertyBagResult > | GetValueBool
(
const FName Name |
Getters Numeric types (bool, (u)int32, (u)int64, float, double) support type conversion. | |
| TValueOrError< uint8, EPropertyBagResult > | GetValueByte
(
const FName Name |
||
| TValueOrError< UClass *, EPropertyBagResult > | GetValueClass
(
const FName Name |
||
| TValueOrError< double, EPropertyBagResult > | GetValueDouble
(
const FName Name |
||
| TValueOrError< T, EPropertyBagResult > | GetValueEnum
(
const FName Name |
||
| TValueOrError< uint8, EPropertyBagResult > | GetValueEnum
(
const FName Name, |
||
| TValueOrError< float, EPropertyBagResult > | GetValueFloat
(
const FName Name |
||
| TValueOrError< int32, EPropertyBagResult > | GetValueInt32
(
const FName Name |
||
| TValueOrError< int64, EPropertyBagResult > | GetValueInt64
(
const FName Name |
||
| TValueOrError< FName, EPropertyBagResult > | GetValueName
(
const FName Name |
||
| TValueOrError< T *, EPropertyBagResult > | GetValueObject
(
const FName Name |
||
| TValueOrError< UObject *, EPropertyBagResult > | GetValueObject
(
const FName Name, |
||
| TValueOrError< FString, EPropertyBagResult > | GetValueSerializedString
(
const FName Name |
||
| TValueOrError< FSoftObjectPath, EPropertyBagResult > | GetValueSoftPath
(
const FName Name |
||
| TValueOrError< FString, EPropertyBagResult > | GetValueString
(
const FName Name |
||
| TValueOrError< FStructView, EPropertyBagResult > | GetValueStruct
(
const FName Name, |
||
| TValueOrError< T *, EPropertyBagResult > | GetValueStruct
(
const FName Name |
||
| TValueOrError< FText, EPropertyBagResult > | GetValueText
(
const FName Name |
||
| TValueOrError< uint32, EPropertyBagResult > | GetValueUInt32
(
const FName Name |
||
| TValueOrError< uint64, EPropertyBagResult > | GetValueUInt64
(
const FName Name |
||
| bool | Identical
(
const FInstancedPropertyBag* Other, |
||
| void | InitializeFromBagStruct
(
const UPropertyBag* NewBagStruct |
Initializes the instance from a bag struct. | |
| bool | IsValid () |
||
| void | MigrateToNewBagInstance
(
const FInstancedPropertyBag& InNewBagInstance |
Changes the type of this bag to the InNewBagInstance, and migrates existing values over. | |
| void | MigrateToNewBagInstanceWithOverrides
(
const FInstancedPropertyBag& InNewBagInstance, |
Changes the type of this bag to the InNewBagInstance, and migrates existing values over if marked as overridden in the OverriddenPropertyIDs. | |
| void | MigrateToNewBagStruct
(
const UPropertyBag* NewBagStruct |
Changes the type of this bag and migrates existing values. | |
| void | RemovePropertiesByName
(
const TConstArrayView< FName > PropertiesToRemove |
Removes properties from the bag by name if they exist. | |
| void | RemovePropertyByName
(
const FName PropertyToRemove |
Removes a property from the bag by name if it exists. | |
| EPropertyBagResult | ReplaceAllPropertiesAndValues
(
const TConstArrayView< FPropertyBagPropertyDesc > InDescs, |
Clears all properties, then adds the supplied properties to the bag and sets their respective values. | |
| void | Reset () |
Resets the instance to empty. | |
| bool | |||
| EPropertyBagResult | Sets property value from given source property and source container address A property must exist in that bag before it can be set. | ||
| EPropertyBagResult | SetValueBool
(
const FName Name, |
Value Setters. | |
| EPropertyBagResult | SetValueByte
(
const FName Name, |
||
| EPropertyBagResult | SetValueClass
(
const FName Name, |
||
| EPropertyBagResult | SetValueDouble
(
const FName Name, |
||
| EPropertyBagResult | SetValueEnum
(
const FName Name, |
||
| EPropertyBagResult | SetValueEnum
(
const FName Name, |
Sets enum value specified type. | |
| EPropertyBagResult | SetValueFloat
(
const FName Name, |
||
| EPropertyBagResult | SetValueInt32
(
const FName Name, |
||
| EPropertyBagResult | SetValueInt64
(
const FName Name, |
||
| EPropertyBagResult | SetValueName
(
const FName Name, |
||
| EPropertyBagResult | SetValueObject
(
const FName Name, |
||
| EPropertyBagResult | SetValueObject
(
const FName Name, |
Sets object pointer value specified type. | |
| EPropertyBagResult | SetValueSerializedString
(
const FName Name, |
Sets property value from a serialized representation of the value. | |
| EPropertyBagResult | SetValueSoftPath
(
const FName Name, |
||
| EPropertyBagResult | SetValueString
(
const FName Name, |
||
| EPropertyBagResult | SetValueStruct
(
const FName Name, |
Sets struct value specified type. | |
| EPropertyBagResult | SetValueStruct
(
const FName Name, |
||
| EPropertyBagResult | SetValueText
(
const FName Name, |
||
| EPropertyBagResult | SetValueUInt32
(
const FName Name, |
||
| EPropertyBagResult | SetValueUInt64
(
const FName Name, |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FInstancedPropertyBag & | operator=
(
FInstancedPropertyBag&& InOther |
||
| FInstancedPropertyBag & | operator=
(
const FInstancedPropertyBag& InOther |