Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/Tools
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UEdMode
- UBaseCharacterFXEditorMode
- UExampleCharacterFXEditorMode
- UBaseLegacyWidgetEdMode
- UEdModeDefault
- UAssetPlacementEdMode
- UFractureEditorMode
- UGroomEditorMode
- UModelingToolsEditorMode
- UScriptableToolsEditorMode
- USequencerToolsEditMode
- UStaticMeshEditorModelingMode
- UWidgetEditorToolPaletteMode
- UGizmoEdMode
- USampleToolsEditorMode
- UUVEditorMode
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/Tools/UEdMode.h |
| Include | #include "Tools/UEdMode.h" |
Syntax
class UEdMode : public UObject
Remarks
Base class for all editor modes.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bHaveSavedEditorState | ||
| bool | bSavedAntiAliasingState | ||
| FEditorModeInfo | Info | Information pertaining to this mode. Should be assigned in the constructor. | |
| FEditorModeTools * | Owner | Pointer back to the mode tools that we are registered with | |
| TSoftClassPtr< UObject > | SettingsClass | ||
| TObjectPtr< UObject > | SettingsObject | ||
| TSharedPtr< FUICommandList > | ToolCommandList | Command list lives here so that the key bindings on the commands can be processed in the viewport. | |
| TSharedPtr< FModeToolkit > | Toolkit | Editor Mode Toolkit that is associated with this toolkit mode |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UEdMode () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | |||
| void | |||
| void | ActorsDuplicatedNotify
(
TArray< AActor* >& PreDuplicateSelection, |
||
| void | |||
| FEdMode * | AsLegacyMode () |
For use by the EditorModeTools class to get the legacy FEdMode type from a legacy FEdMode wrapper You should not need to override this function in your UEdMode implementation. | |
| void | BindCommands () |
||
| bool | CanAutoSave () |
Check to see if this UEdMode wants to disallow AutoSave | |
| bool | ComputeBoundingBoxForViewportFocus
(
AActor* Actor, |
Allows an editor mode to override the bounding box used to focus the viewport on a selection | |
| void | |||
| void | |||
| void | |||
| void | Enter () |
||
| void | Exit () |
||
| EEditAction::Type | |||
| EEditAction::Type | |||
| EEditAction::Type | |||
| EEditAction::Type | Added for handling EDIT Command... | ||
| EEditAction::Type | |||
| bool | GetCursor
(
EMouseCursor::Type& OutCursor |
Get a cursor to override the default with, if any. | |
| EToolsContextScope | Default Scope for InteractiveToolsContext API functions, eg RegisterTool(), GetToolManager(), GetInteractiveToolsContext(). | ||
| AActor * | Returns the first selected Actor, or NULL if there is no selection. | ||
| FEditorModeID | GetID () |
Returns the editor mode identifier. | |
| UEditorInteractiveToolsContext * | GetInteractiveToolsContext
(
EToolsContextScope ToolScope |
||
| TMap< FName, TArray< TSharedPtr< FUICommandInfo > > > | |||
| const FEditorModeInfo & | GetModeInfo () |
Returns the editor mode information. | |
| FEditorModeTools * | Returns the owning mode manager for this mode | ||
| bool | GetOverrideCursorVisibility
(
bool& bWantsOverride, |
Get override cursor visibility settings | |
| bool | GetPivotForOrbit
(
FVector& OutPivot |
Lets each mode/tool specify a pivot point around which the camera should orbit | |
| TWeakPtr< FModeToolkit > | GetToolkit () |
Gets the toolkit created by this mode | |
| UInteractiveToolManager * | GetToolManager
(
EToolsContextScope ToolScope |
||
| UWorld * | GetWorld () |
Returns the world this toolkit is editing | |
| void | Initialize () |
||
| bool | IsCompatibleWith
(
FEditorModeID OtherModeID |
||
| bool | IsOperationSupportedForCurrentAsset
(
EAssetOperation InOperation |
Check to see if this UEdMode wants to disallow operation on current asset | |
| bool | IsSelectionAllowed
(
AActor* InActor, |
Check to see if an actor can be selected in this mode - no side effects | |
| bool | IsSelectionDisallowed
(
AActor* InActor, |
Check to see if an actor selection is exclusively dissallowed by a mode no side effects | |
| bool | If Rotation Snap should be enabled for this mode | ||
| void | |||
| void | ModeTick
(
float DeltaTime |
||
| void | OnModeActivated
(
const FEditorModeID& InID, |
||
| bool | |||
| void | OnToolEnded
(
UInteractiveToolManager* Manager, |
||
| void | OnToolStarted
(
UInteractiveToolManager* Manager, |
||
| void | PostUndo () |
||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| void | RegisterTool
(
TSharedPtr< FUICommandInfo > UICommand, |
Registers and maps the provided UI command to actions that start / stop a given tool. | |
| bool | Handling SelectActor | ||
| void | |||
| void | SelectNone () |
||
| bool | ShouldDrawBrushWireframe
(
AActor* InActor |
||
| bool | ShouldToolStartBeAllowed
(
const FString& ToolIdentifier |
Subclasses can override this to add additional checks on whether a tool should be allowed to start. | |
| bool | SnapRotatorToGridOverride
(
FRotator& Rotation |
If this mode should override the snap rotation | |
| void | |||
| bool | UsesToolkits () |
True if this mode uses a toolkit mode (eventually they all should) |