Navigation
API > API/Editor > API/Editor/StructUtilsEditor > API/Editor/StructUtilsEditor/UPropertyBagHierarchyViewModel
Description
Initializes the hierarchy view model. Internally creates a PropertyRowGenerator to generate a stable property handle that survives details panel refreshes. The property handle is used by ApplyChangesToSinglePropertyDesc to notify pre/post change when editing property metadata (tooltips, clamp values, etc.) via the hierarchy editor.
Note: PropertyUtilities must be set separately via SetPropertyUtilities() after Initialize returns. This is because Initialize triggers a PropertyRowGenerator layout rebuild which re-enters AcquireHierarchyViewModel, and setting utilities during that reentrancy would overwrite them with the generator's internal utilities.
| Name | Initialize |
| Type | function |
| Header File | /Engine/Source/Editor/StructUtilsEditor/Public/HierarchyEditor/PropertyBagHierarchyViewModel.h |
| Include Path | #include "HierarchyEditor/PropertyBagHierarchyViewModel.h" |
| Source | /Engine/Source/Editor/StructUtilsEditor/Private/HierarchyEditor/PropertyBagHierarchyViewModel.cpp |
void Initialize
(
UObject * InOwningObject,
TSharedRef < FPropertyPath > InPropertyPath
)
Parameters
| Name | Remarks |
|---|---|
| InOwningObject | The UObject that owns the property bag (e.g. the Blueprint CDO or actor). Used to populate the PropertyRowGenerator. |
| InPropertyPath | Path to the FInstancedPropertyBag property within the owning object. Used to locate the property bag handle in the generated property tree. |