Navigation
API > API/Editor > API/Editor/UnrealEd
Inheritance Hierarchy
- TSharedFromThis
- FGCObject
- FEditorCommonDrawHelper
- FLegacyEdModeWidgetHelper
- FEdMode
- FContextualAnimEdMode
- FDatabaseEdMode
- FInteractionAssetEdMode
- FPhysicsManipulationEdMode
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/EdMode.h |
| Include | #include "EdMode.h" |
Syntax
class FEdMode :
public TSharedFromThis< FEdMode > ,
public FGCObject ,
public FEditorCommonDrawHelper ,
public FLegacyEdModeWidgetHelper
Remarks
Base class for all editor modes.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FModeTool * | CurrentTool | The tool that is currently active within this mode. | |
| FEditorModeInfo | Info | Information pertaining to this mode. | |
| TSharedPtr< class FModeToolkit > | Toolkit | Editor Mode Toolkit that is associated with this toolkit mode | |
| TArray< FModeTool * > | Tools | Optional array of tools for this mode. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FEdMode () |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FEdMode () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | |||
| void | ActorsDuplicatedNotify
(
TArray< AActor* >& PreDuplicateSelection, |
||
| bool | BeginTransform
(
const FGizmoState& InState |
||
| bool | Lets each mode/tool handle box selection in its own way. | ||
| void | BuildModeToolbar
(
FToolBarBuilder& ToolbarBuilder |
Called when the editor mode should rebuild its toolbar | |
| bool | CanAutoSave () |
Check to see if this EdMode wants to disallow AutoSave | |
| bool | CanCreateWidgetForProperty
(
FProperty* InProp |
Returns true if this property can support creating a widget in the editor | |
| bool | CanCreateWidgetForStructure
(
const UStruct* InPropStruct |
Returns true if this structure can support creating a widget in the editor | |
| bool | CapturedMouseMove
(
FEditorViewportClient* InViewportClient, |
Called when the mouse is moved while a window input capture is in effect | |
| bool | ComputeBoundingBoxForViewportFocus
(
AActor* Actor, |
Allows an editor mode to override the bounding box used to focus the viewport on a selection | |
| void | |||
| bool | If the Edmode is handling its own mouse deltas, it can disable the MouseDeltaTacker | ||
| bool | EndTracking
(
FEditorViewportClient* InViewportClient, |
||
| bool | EndTransform
(
const FGizmoState& InState |
||
| void | Enter () |
||
| void | Exit () |
||
| FModeTool * | FindTool
(
EModeTools InID |
||
| bool | FrustumSelect
(
const FConvexVolume& InFrustum, |
Lets each mode/tool handle frustum selection in its own way. | |
| EEditAction::Type | |||
| EEditAction::Type | |||
| EEditAction::Type | |||
| EEditAction::Type | Added for handling EDIT Command... | ||
| EEditAction::Type | |||
| const FModeTool * | |||
| FModeTool * | Returns the current tool. | ||
| bool | GetCursor
(
EMouseCursor::Type& OutCursor |
Get a cursor to override the default with, if any. | |
| FEditorModeID | GetID () |
Returns the editor mode identifier. | |
| 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 | |
| TSharedPtr< FModeToolkit > | GetToolkit () |
Gets the toolkit created by this mode | |
| const TArray< FModeTool * > & | GetTools () |
||
| UTexture2D * | |||
| UWorld * | GetWorld () |
Returns the world this toolkit is editing | |
| bool | Called when attempting to duplicate the selected actors by alt+dragging, return true to prevent normal duplication. | ||
| void | Initialize () |
||
| bool | InputAxis
(
FEditorViewportClient* InViewportClient, |
||
| bool | InputKey
(
FEditorViewportClient* ViewportClient, |
||
| bool | IsCompatibleWith
(
FEditorModeID OtherModeID |
||
| bool | IsSelectionAllowed
(
AActor* InActor, |
Check to see if an actor can be selected in this mode - no side effects | |
| bool | If Rotation Snap should be enabled for this mode | ||
| bool | LostFocus
(
FEditorViewportClient* ViewportClient, |
||
| void | |||
| bool | MouseEnter
(
FEditorViewportClient* ViewportClient, |
||
| bool | MouseLeave
(
FEditorViewportClient* ViewportClient, |
||
| bool | MouseMove
(
FEditorViewportClient* ViewportClient, |
||
| bool | PostConvertMouseMovement
(
FEditorViewportClient* InViewportClient |
Called after mouse movement is converted to drag/rot | |
| void | PostUndo () |
||
| bool | PreConvertMouseMovement
(
FEditorViewportClient* InViewportClient |
Called before mouse movement is converted to drag/rot | |
| bool | ProcessCapturedMouseMoves
(
FEditorViewportClient* InViewportClient, |
Process all captured mouse moves that occurred during the current frame | |
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | ReceivedFocus
(
FEditorViewportClient* ViewportClient, |
||
| void | Request that this mode be deleted at the next convenient opportunity (FEditorModeTools::Tick) | ||
| bool | Select
(
AActor* InActor, |
Handling SelectActor | |
| void | |||
| void | SelectNone () |
||
| void | SetCurrentTool
(
FModeTool* InModeTool |
||
| void | SetCurrentTool
(
EModeTools InID |
||
| bool | ShouldCreateWidgetForProperty
(
FProperty* InProp |
See if we should create a widget for the supplied property when selecting an actor instance | |
| bool | ShouldDrawBrushWireframe
(
AActor* InActor |
||
| bool | SnapRotatorToGridOverride
(
FRotator& Rotation |
If this mode should override the snap rotation | |
| bool | StartTracking
(
FEditorViewportClient* InViewportClient, |
||
| void | Tick
(
FEditorViewportClient* ViewportClient, |
||
| void | |||
| bool | UsesToolkits () |
True if this mode uses a toolkit mode (eventually they all should) |
Overridden from FGCObject
| Type | Name | Description | |
|---|---|---|---|
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
Pure virtual that must be overloaded by the inheriting class. | |
| FString | Overload this method to report a name for your referencer |
Overridden from FLegacyEdModeWidgetHelper
| Type | Name | Description | |
|---|---|---|---|
| void | DrawHUD
(
FEditorViewportClient* ViewportClient, |
Overlays the editor hud (brushes, drag tools, static mesh vertices, etc*. | |
| bool | HandleClick
(
FEditorViewportClient* InViewportClient, |
||
| bool | InputDelta
(
FEditorViewportClient* InViewportClient, |
||
| void | Render
(
const FSceneView* View, |
Draws translucent polygons on brushes and volumes. | |
| bool | |||
| bool | Lets each tool determine if it wants to use the editor widget or not. | ||
| bool | UsesTransformWidget
(
UE::Widget::EWidgetMode CheckMode |
Typedefs
| Name | Description |
|---|---|
| FPropertyWidgetInfo |
Constants
| Name | Description |
|---|---|
| MD_MakeEditWidget | @TODO: Find a better home for these? |
| MD_ValidateWidgetUsing | Specifies a function used for validation of the current value of a property. |