Navigation
API > API/Plugins > API/Plugins/StructUtils > API/Plugins/StructUtils/FInstancedPropertyBag > API/Plugins/StructUtils/FInstancedPropertyBag/AddProperty
References
| Module | StructUtils |
| Header | /Engine/Plugins/Experimental/StructUtils/Source/StructUtils/Public/PropertyBag.h |
| Include | #include "PropertyBag.h" |
| Source | /Engine/Plugins/Experimental/StructUtils/Source/StructUtils/Private/PropertyBag.cpp |
void AddProperty
&40;
const FName InName,
const EPropertyBagPropertyType InValueType,
UObject &42; InValueTypeObject
&41;
Remarks
Adds a new property to the bag. If property of same name already exists, it will be replaced with the new type. Numeric property values will be converted if possible, when a property's type changes.
Parameters
| Name | Description |
|---|---|
| InName | Name of the new property |
| InValueType | Type of the new property |
| InValueTypeObject | Type object (for struct, class, enum) of the new property |