Navigation
API > API/Editor > API/Editor/StructUtilsEditor
Node builder for FInstancedStruct children. Expects property handle holding FInstancedStruct as input. Can be used in a implementation of a IPropertyTypeCustomization CustomizeChildren() to display editable FInstancedStruct contents. OnChildRowAdded() is called right after each property is added, which allows the property row to be customizable. Child properties will be grouped if they 1) have "Category" metadata, and 2) have the "EnableCategories" metadata tag.
| Name | FInstancedStructDataDetails |
| Type | class |
| Header File | /Engine/Source/Editor/StructUtilsEditor/Public/InstancedStructDetails.h |
| Include Path | #include "InstancedStructDetails.h" |
Syntax
class FInstancedStructDataDetails :
public IDetailCustomNodeBuilder ,
public TSharedFromThis< FInstancedStructDataDetails >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FInstancedStructDataDetails
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FInstancedStructDataDetails
(
TSharedPtr< IPropertyHandle > InStructProperty |
InstancedStructDetails.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FInstancedStructDataDetails() |
InstancedStructDetails.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bCanHandleStructValuePostChange | bool | True if we're allowed to handle a StructValuePostChange | InstancedStructDetails.h | |
| CachedInstanceTypes | TArray< TWeakObjectPtr< const UStruct > > | Cached instance types, used to invalidate the layout when types change. | InstancedStructDetails.h | |
| OnRegenerateChildren | FSimpleDelegate | Delegate that can be used to refresh the child rows of the current struct (eg, when changing struct type) | InstancedStructDetails.h | |
| StructProperty | TSharedPtr< IPropertyHandle > | Handle to the struct property being edited | InstancedStructDetails.h | |
| UserDefinedStructReinstancedHandle | FDelegateHandle | InstancedStructDetails.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnChildRowAdded
(
IDetailPropertyRow& ChildRow |
Called when a child is added, override to customize a child row. | InstancedStructDetails.h | |
virtual void OnGroupRowAdded
(
IDetailGroup& GroupRow, |
Called when a group is added, override to customize a group row. | InstancedStructDetails.h |
Overridden from IDetailCustomNodeBuilder
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GenerateChildContent
(
IDetailChildrenBuilder& ChildrenBuilder |
InstancedStructDetails.h | ||
virtual void GenerateHeaderRowContent
(
FDetailWidgetRow& NodeRow |
InstancedStructDetails.h | ||
virtual FName GetName() |
InstancedStructDetails.h | ||
virtual bool InitiallyCollapsed() |
InstancedStructDetails.h | ||
virtual bool RequiresTick() |
InstancedStructDetails.h | ||
virtual void SetOnRebuildChildren
(
FSimpleDelegate InOnRegenerateChildren |
InstancedStructDetails.h | ||
virtual void Tick
(
float DeltaTime |
InstancedStructDetails.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddChildRows
(
IDetailChildrenBuilder& ChildBuilder, |
InstancedStructDetails.h | ||
void OnStructLayoutChanges() |
InstancedStructDetails.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TArray< FString > GetPropertyCategories
(
TSharedPtr< IPropertyHandle > PropertyHandle |
InstancedStructDetails.h |