Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/Tools
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UEdMode
- UBaseLegacyWidgetEdMode
- UEdModeDefault
- UAssetPlacementEdMode
- UFractureEditorMode
- UGroomEditorMode
- UModelingToolsEditorMode
- UScriptableToolsEditorMode
- USequencerToolsEditMode
- UStaticMeshEditorModelingMode
- UWidgetEditorToolPaletteMode
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/Tools/LegacyEdModeWidgetHelpers.h |
| Include | #include "Tools/LegacyEdModeWidgetHelpers.h" |
Syntax
class UBaseLegacyWidgetEdMode :
public UEdMode,
public ILegacyEdModeWidgetInterface,
public ILegacyEdModeViewportInterface
Remarks
This class is to aid transitioning from native FEdModes to UEdModes, in the case that the FEdMode used property widgets and/or transform widgets To use this class:
Subclass FLegacyEdModeWidgetHelper, and override the methods needed for your native FEdMode implementation
Transition your native FEdMode to a UObject, by inheriting from this class
Override CreateWidgetHelper function to return a SharedRef to the class you created in step 1.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< FLegacyEdModeWidgetHelper > | WidgetHelper |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< FLegacyEdModeWidgetHelper > |
Overridden from UEdMode
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | Initialize () |
If you need to do any initialization in your mode, be sure to still call through to this function. |
Overridden from ILegacyEdModeWidgetInterface
| Type | Name | Description | |
|---|---|---|---|
| bool | ILegacyEdModeWidgetInterface overrides are just a pass through to the FLegacyEdModeWidgetHelper. | ||
| bool | Check to see if the current widget mode can be cycled | ||
| void | DrawHUD
(
FEditorViewportClient* ViewportClient, |
||
| EAxisList::Type | |||
| bool | GetCustomDrawingCoordinateSystem
(
FMatrix& InMatrix, |
||
| bool | GetCustomInputCoordinateSystem
(
FMatrix& InMatrix, |
||
| EAxisList::Type | GetWidgetAxisToDraw
(
UE::Widget::EWidgetMode InWidgetMode |
Allows each mode to customize the axis pieces of the widget they want drawn. | |
| FVector | Allows each mode/tool to determine a good location for the widget to be drawn at. | ||
| FVector | GetWidgetNormalFromCurrentAxis
(
void* InData |
||
| void | Render
(
const FSceneView* View, |
||
| void | SetCurrentWidgetAxis
(
EAxisList::Type InAxis |
||
| bool | Lets the mode determine if it wants to draw the widget or not. | ||
| bool | |||
| bool | Lets each mode selectively enable widgets for editing properties tagged with 'Show 3D Widget' metadata. | ||
| bool | Lets each tool determine if it wants to use the editor widget or not. | ||
| bool | UsesTransformWidget
(
UE::Widget::EWidgetMode CheckMode |
Lets each mode selectively exclude certain widget types. |
Overridden from ILegacyEdModeViewportInterface
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| bool | HandleClick
(
FEditorViewportClient* InViewportClient, |
||
| bool | InputDelta
(
FEditorViewportClient* InViewportClient, |