Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UPropertyBag
Description
Returns UPropertyBag struct based on the property descriptions passed in. UPropertyBag struct names will be auto-generated by prefixing 'PropertyBag_' to the hash of the descriptions. If a UPropertyBag with same name already exists, the existing object is returned. This means that a property bags which share same layout (same descriptions) will share the same UPropertyBag. If there are multiple properties that have the same name, only the first property is added. The caller is expected to ensure unique names for the property descriptions.
| Name | GetOrCreateFromDescs |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/StructUtils/PropertyBag.h |
| Include Path | #include "StructUtils/PropertyBag.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/StructUtils/PropertyBag.cpp |
static const UPropertyBag * GetOrCreateFromDescs
(
const TConstArrayView< FPropertyBagPropertyDesc > InPropertyDescs,
const TCHAR * PrefixName
)