Navigation
API > API/Plugins > API/Plugins/WidgetEditorToolPalette
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.
| Name | UCreateWidgetTool |
| Type | class |
| Header File | /Engine/Plugins/Experimental/WidgetEditorToolPalette/Source/WidgetEditorToolPalette/Public/DefaultTools/CreateWidgetTool.h |
| Include Path | #include "DefaultTools/CreateWidgetTool.h" |
Syntax
UCLASS ()
class UCreateWidgetTool :
public USingleClickTool,
public IWidgetBaseBehavior
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInteractiveTool → USingleClickTool → UCreateWidgetTool
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UCreateWidgetTool() |
DefaultTools/CreateWidgetTool.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| WidgetClass | UClass * | Widget Class to be created by this tool | DefaultTools/CreateWidgetTool.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool OnMouseButtonUp
(
const FGeometry& MyGeometry, |
DefaultTools/CreateWidgetTool.h | ||
virtual void SetOwningToolkit
(
TSharedPtr< class IToolkit > InOwningToolkit |
DefaultTools/CreateWidgetTool.h | ||
virtual void SetOwningWidget
(
TSharedPtr< class SWidget > InOwningWidget |
DefaultTools/CreateWidgetTool.h | ||
virtual void Setup() |
DefaultTools/CreateWidgetTool.h |