Language:
Discover
By Skill Level
By Category

FEdMode

Choose your OS:

Inheritance Hierarchy

Syntax

class FEdMode :
    public TSharedFromThis< FEdMode > ,
    public FGCObject ,
    public FEditorCommonDrawHelper

Remarks

Base class for all editor modes.

Variables

Name Description

Protected variable

bool

 

bEditedPropertyIsTransform

Indicates

Protected variable

FModeTool *

 

CurrentTool

The tool that is currently active within this mode.

Protected variable

EAxisList::Type

 

CurrentWidgetAxis

The current axis that is being dragged on the widget.

Protected variable

int32

 

EditedPropertyIndex

If the property being edited is an array property, this is the index of the element we're currently dealing with

Protected variable

FString

 

EditedPropertyName

Name of the property currently being edited

Protected variable

FEditorModeInfo

 

Info

Information pertaining to this mode.

Protected variable

FEditorModeTool ...

 

Owner

Pointer back to the mode tools that we are registered with

Protected variable

TSharedPtr < cla...

 

Toolkit

Editor Mode Toolkit that is associated with this toolkit mode

Protected variable

TArray < FModeTo ...

 

Tools

Optional array of tools for this mode.

Constructors

Name Description

Public function

FEdMode()

Destructors

Name Description

Public function Virtual

~FEdMode()

Functions

Name Description

Public function Virtual

void

 

ActorMoveNotify()

Public function Virtual

void

 

ActorPropChangeNotify()

Public function Virtual

void

 

ActorsDuplicatedNotify

(
    TArray < AActor * >& PreDuplica...,
    TArray < AActor * >& PostDuplic...,
    bool bOffsetLocations
)

Public function Virtual

void

 

ActorSelectionChangeNotify()

Public function Virtual

bool

 

AllowsViewportDragTool()

True if this mode allows the viewport to use a drag tool

Public function Virtual

bool

 

AllowWidgetMove()

If the EdMode is handling InputDelta (i.e., returning true from it), this allows a mode to indicated whether or not the Widget should also move.

Public function Virtual

bool

 

BoxSelect

(
    FBox & InBox,
    bool InSelect
)

Lets each mode/tool handle box selection in its own way.

Public function Static

bool

 

CanCreateWidgetForProperty

(
    UProperty * InProp
)

Returns true if this property can support creating a widget in the editor

Public function Static

bool

 

CanCreateWidgetForStructure

(
    const UStruct * InPropStruct
)

Returns true if this structure can support creating a widget in the editor

Public function Virtual

bool

 

CanCycleWidgetMode()

Check to see if the current widget mode can be cycled

Public function Virtual

bool

 

CapturedMouseMove

(
    FEditorViewportClient * InViewp...,
    FViewport * InViewport,
    int32 InMouseX,
    int32 InMouseY
)

Called when the mouse is moved while a window input capture is in effect

Public function Virtual

void

 

CurrentToolChanged()

Public function Virtual

bool

 

DisallowMouseDeltaTracking()

If the Edmode is handling its own mouse deltas, it can disable the MouseDeltaTacker

Public function Virtual

void

 

DrawBrackets

(
    FEditorViewportClient * Viewpor...,
    FViewport * Viewport,
    const FSceneView * View,
    FCanvas * Canvas
)

Called when the mode wants to draw brackets around selected objects

Public function Virtual

void

 

DrawHUD

(
    FEditorViewportClient * Viewpor...,
    FViewport * Viewport,
    const FSceneView * View,
    FCanvas * Canvas
)

Void DrawGridSection(int32 ViewportLocX,int32 ViewportGridY,FVector* A,FVector* B,float* AX,float* BX,int32 Axis,int32 AlphaCase,FSceneView* View,FPrimitiveDrawInterface* PDI);

Public function Virtual

bool

 

EndTracking

(
    FEditorViewportClient * InViewp...,
    FViewport * InViewport
)

Public function Virtual

void

 

Enter()

Public function Virtual

void

 

Exit()

Public function

FModeTool &#...

 

FindTool

(
    EModeTools InID
)

Public function Virtual

bool

 

FrustumSelect

(
    const FConvexVolume & InFrustum,
    FEditorViewportClient * InViewp...,
    bool InSelect
)

Lets each mode/tool handle frustum selection in its own way.

Public function Virtual

EEditAction: ...

 

GetActionEditCopy()

Public function Virtual

EEditAction: ...

 

GetActionEditCut()

Public function Virtual

EEditAction: ...

 

GetActionEditDelete()

Public function Virtual

EEditAction: ...

 

GetActionEditDuplicate()

Added for handling EDIT Command...

Public function Virtual

EEditAction: ...

 

GetActionEditPaste()

Public function

const FModeT ...

 

GetCurrentTool()

Public function

FModeTool &#...

 

GetCurrentTool()

Returns the current tool.

Public function

EAxisList::T ...

 

GetCurrentWidgetAxis()

Public function Virtual

bool

 

GetCursor

(
    EMouseCursor::Type & OutCursor
)

Get a cursor to override the default with, if any.

true if the cursor was overridden.

Public function Virtual

bool

 

GetCustomDrawingCoordinateSystem

(
    FMatrix & InMatrix,
    void* InData
)

Public function Virtual

bool

 

GetCustomInputCoordinateSystem

(
    FMatrix & InMatrix,
    void* InData
)

Protected function

AActor *

 

GetFirstSelectedActorInstance()

Returns the first selected Actor, or NULL if there is no selection.

Public function

FEditorModeI ...

 

GetID()

Returns the editor mode identifier.

Protected function Virtual

UObject *...

 

GetItemToTryDisplayingWidgetsFor

(
    FTransform & OutWidgetToWorld
)

Finds the best item to display widgets for (preferring selected components over selected actors)

Public function

const FEdito ...

 

GetModeInfo()

Returns the editor mode information.

Public function

FEditorModeT ...

 

GetModeManager()

Returns the owning mode manager for this mode

Protected function

void

 

GetPropertyWidgetInfos

(
    const UStruct * InStruct,
    const void* InContainer,
    TArray < FPropertyWidgetInfo >& Out...
)

Gets an array of property widget info structures for the given struct/class type for the given container.

Public function

const TArray ...

 

GetTools()

Public function Virtual

UTexture2D &...

 

GetVertexTexture()

Public function Virtual

EAxisList::T ...

 

GetWidgetAxisToDraw

(
    FWidget::EWidgetMode InWidgetMode
)

Allows each mode to customize the axis pieces of the widget they want drawn.

Public function Virtual

FVector

 

GetWidgetLocation()

Allows each mode/tool to determine a good location for the widget to be drawn at.

Public function Virtual

FVector

 

GetWidgetNormalFromCurrentAxis

(
    void* InData
)

Public function

UWorld *

 

GetWorld()

Returns the world this toolkit is editing

Public function Virtual

bool

 

HandleClick

(
    FEditorViewportClient * InViewp...,
    HHitProxy * HitProxy,
    const FViewportClick & Click
)

Public function Virtual

bool

 

HandleDragDuplicate()

Called when attempting to duplicate the selected actors by alt+dragging, return true to prevent normal duplication.

Public function Virtual

void

 

Initialize()

Public function Virtual

bool

 

InputAxis

(
    FEditorViewportClient * InViewp...,
    FViewport * Viewport,
    int32 ControllerId,
    FKey Key,
    float Delta,
    float DeltaTime
)

Public function Virtual

bool

 

InputDelta

(
    FEditorViewportClient * InViewp...,
    FViewport * InViewport,
    FVector & InDrag,
    FRotator & InRot,
    FVector & InScale
)

Public function Virtual

bool

 

InputKey

(
    FEditorViewportClient * Viewpor...,
    FViewport * Viewport,
    FKey Key,
    EInputEvent Event
)

Public function Virtual

bool

 

IsCompatibleWith

(
    FEditorModeID OtherModeID
)

Public function

bool

 

IsPendingDeletion()

Returns true if this mode is to be deleted at the next convenient opportunity (FEditorModeTools::Tick )

Public function Virtual

bool

 

IsSelectionAllowed

(
    AActor * InActor,
    bool bInSelection
)

Check to see if an actor can be selected in this mode - no side effects

Public function Virtual

bool

 

IsSnapRotationEnabled()

If Rotation Snap should be enabled for this mode

Public function Virtual

bool

 

LostFocus

(
    FEditorViewportClient * Viewpor...,
    FViewport * Viewport
)

Public function Virtual

void

 

MapChangeNotify()

Public function Virtual

bool

 

MouseEnter

(
    FEditorViewportClient * Viewpor...,
    FViewport * Viewport,
    int32 x,
    int32 y
)

Public function Virtual

bool

 

MouseLeave

(
    FEditorViewportClient * Viewpor...,
    FViewport * Viewport
)

Public function Virtual

bool

 

MouseMove

(
    FEditorViewportClient * Viewpor...,
    FViewport * Viewport,
    int32 x,
    int32 y
)

Public function Virtual

void

 

PostUndo()

Public function Virtual

bool

 

ProcessEditCopy()

Public function Virtual

bool

 

ProcessEditCut()

Public function Virtual

bool

 

ProcessEditDelete()

Public function Virtual

bool

 

ProcessEditDuplicate()

Public function Virtual

bool

 

ProcessEditPaste()

Public function Virtual

bool

 

ReceivedFocus

(
    FEditorViewportClient * Viewpor...,
    FViewport * Viewport
)

Public function Virtual

void

 

Render

(
    const FSceneView * View,
    FViewport * Viewport,
    FPrimitiveDrawInterface * PDI
)

Draws translucent polygons on brushes and volumes.

Public function

void

 

RequestDeletion()

Request that this mode be deleted at the next convenient opportunity (FEditorModeTools::Tick )

Public function Virtual

bool

 

Select

(
    AActor * InActor,
    bool bInSelected
)

Handling SelectActor

Public function Virtual

void

 

SelectionChanged()

Public function Virtual

void

 

SelectNone()

Public function

void

 

SetCurrentTool

(
    FModeTool * InModeTool
)

Public function

void

 

SetCurrentTool

(
    EModeTools InID
)

Tools.

Public function

void

 

SetCurrentWidgetAxis

(
    EAxisList::Type InAxis
)

Public function Static

bool

 

ShouldCreateWidgetForProperty

(
    UProperty * InProp
)

See if we should create a widget for the supplied property when selecting an actor instance

Public function Virtual

bool

 

ShouldDrawBrushWireframe

(
    AActor * InActor
)

Public function Virtual

bool

 

ShouldDrawWidget()

Lets the mode determine if it wants to draw the widget or not.

Public function Virtual

bool

 

ShowModeWidgets()

Public function Virtual

bool

 

SnapRotatorToGridOverride

(
    FRotator & Rotation
)

If this mode should override the snap rotation

True if you have overridden the value

Public function Virtual

bool

 

StartTracking

(
    FEditorViewportClient * InViewp...,
    FViewport * InViewport
)

Public function Virtual

void

 

Tick

(
    FEditorViewportClient * Viewpor...,
    float DeltaTime
)

Public function Virtual

void

 

UpdateInternalData()

Public function Virtual

bool

 

UsesPropertyWidgets()

Property Widgets.

Public function Virtual

bool

 

UsesToolkits()

True if this mode uses a toolkit mode (eventually they all should)

Public function Virtual

bool

 

UsesTransformWidget()

Lets each tool determine if it wants to use the editor widget or not.

Public function Virtual

bool

 

UsesTransformWidget

(
    FWidget::EWidgetMode CheckMode
)

Lets each mode selectively exclude certain widget types.

Overridden from FGCObject

Name Description

Public function Virtual

void

 

AddReferencedObjects

(
    FReferenceCollector & Collector
)

Pure virtual that must be overloaded by the inheriting class.

Classes

Name

Description

Public struct

FPropertyWidgetInfo

Property Widgets.

Constants

Name

Description

MD_MakeEditWidget

: Find a better home for these?

MD_ValidateWidgetUsing

Specifies a function used for validation of the current value of a property.

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/EdMode.h