Navigation
API > API/Plugins > API/Plugins/WidgetEditorToolPalette > API/Plugins/WidgetEditorToolPalette/DefaultTools
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UInteractiveTool
- USingleClickTool
- UCreateWidgetTool
References
| Module | WidgetEditorToolPalette |
| Header | /Engine/Plugins/Experimental/WidgetEditorToolPalette/Source/WidgetEditorToolPalette/Public/DefaultTools/CreateWidgetTool.h |
| Include | #include "DefaultTools/CreateWidgetTool.h" |
Syntax
UCLASS&40;&41;
class UCreateWidgetTool :
public USingleClickTool,
public IWidgetBaseBehavior
Remarks
UCreateWidgetTool is a tool that allows for a specific widget to be created on click It allows for fast widget creation via hotkeys. The specific OnClick behavior can be customized by specifying a different create widget tool builder class in editor per project user settings.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TWeakPtr< class FWidgetBlueprintEditor > | OwningToolkit | : DarenC - Find a good parent class or interface for these (as base class) | |
| TWeakPtr< class SDesignerView > | OwningWidget | ||
| TObjectPtr< UCreateWidgetToolProperties > | Properties | ||
| UClass * | WidgetClass | Widget Class to be created by this tool |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | SetOwningToolkit
(
TSharedPtr< class IToolkit > InOwningToolkit |
||
| void | SetOwningWidget
(
TSharedPtr< class SWidget > InOwningWidget |
Overridden from UInteractiveTool
| Type | Name | Description | |
|---|---|---|---|
| void | Setup () |
Register default primary-button-click InputBehaviors |
Overridden from IWidgetBaseBehavior
| Type | Name | Description | |
|---|---|---|---|
| bool | OnMouseButtonUp
(
const FGeometry& MyGeometry, |