Navigation
API > API/Editor > API/Editor/PropertyEditor
Displays a reset to default menu for a set of properties Will hide itself automatically when all of the properties being observed are already at their default values
| Name | SResetToDefaultMenu |
| Type | class |
| Header File | /Engine/Source/Editor/PropertyEditor/Public/SResetToDefaultMenu.h |
| Include Path | #include "SResetToDefaultMenu.h" |
Syntax
class SResetToDefaultMenu : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SResetToDefaultMenu
- FSlateControlledConstruction → SWidget → SCompoundWidget → SResetToDefaultMenu
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bShouldBeVisible | bool | Whether or this menu should be visible | SResetToDefaultMenu.h | |
| DiffersFromDefault | TAttribute< bool > | Attribute used to determine whether we are different from the default | SResetToDefaultMenu.h | |
| OnGetResetToDefaultText | FOnGetResetToDefaultText | Delegate used to get the text to display when resetting our value - only used when we don't have a property handle | SResetToDefaultMenu.h | |
| OnResetToDefault | FSimpleDelegate | Delegate fired when we reset to default - only used when we don't have a property handle | SResetToDefaultMenu.h | |
| Properties | TArray< TSharedRef< class IPropertyHandle > > | Properties that should be displayed in the menu | SResetToDefaultMenu.h | |
| VisibilityWhenDefault | EVisibility | The visibility to use when the properties are already the default | SResetToDefaultMenu.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddProperty
(
TSharedRef< class IPropertyHandle > InProperty |
Adds a new property to the menu that is displayed when a user clicks the reset to default button | SResetToDefaultMenu.h | |
void Construct
(
const FArguments& InArgs |
SResetToDefaultMenu.h |