IStaticMeshEditor

Public interface to Static Mesh Editor

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

StaticMeshEditor

Header

/Engine/Source/Editor/StaticMeshEditor/Public/IStaticMeshEditor.h

Include

#include "IStaticMeshEditor.h"

Syntax

class IStaticMeshEditor : public FAssetEditorToolkit

Remarks

Public interface to Static Mesh Editor

Variables

Functions

Name Description

Public function

void

 

AddSelectedPrim

(
    const FPrimData& InPrimData,
    bool bClearSelection
)

Adds primitive information to the selected prims list

Public function

void

 

BroadcastOnSelectedLODChanged()

Broadcast when selected LOD changes

Public function Const

bool

 

CalcSelectedPrimsAABB

(
    FBox& OutBox
)

Calculates the bounding box of our selected primitives

Public function

void

 

ClearSelectedPrims()

Removes all primitive data from the list

Public function

void

 

DoDecomp

(
    uint32 InHullCount,
    int32 InMaxHullVerts,
    uint32 InHullPrecision
)

This is called when Apply is pressed in the dialog. Does the actual processing.

Public function

void

 

DuplicateSelectedPrims

(
    const FVector* InOffset
)

Duplicates all the selected primitives and selects them

Public function

void

 

DuplicateSelectedSocket()

Duplicate the selected socket

Public function

int32

 

GetCurrentLODIndex()

Retrieves the current LOD index

Public function

int32

 

GetCurrentLODLevel()

Retrieves the current LOD level. 0 is auto, 1 is base.

Public function

int32

 

GetCurrentUVChannel()

Retrieves the currently selected UV channel.

Public function Virtual Const

int32

 

GetCustomData

(
    const int32 Key
)

Retrieve editor custom data. Return INDEX_NONE if the key is invalid

Public function Const

bool

 

GetLastSelectedPrimTransform

(
    FTransform& OutTransform
)

Fetches the transform of the last primitive to be selected

Public function Const

int32

 

GetNumTriangles

(
    int32 LODLevel
)

Retrieves the number of triangles in the current static mesh or it's forced LOD.

Public function Const

int32

 

GetNumUVChannels

(
    int32 LODLevel
)

Retrieves the number of UV channels available.

Public function Const

int32

 

GetNumVertices

(
    int32 LODLevel
)

Retrieves the number of vertices in the current static mesh or it's forced LOD.

Public function Const

FTransform

 

GetPrimTransform

(
    const FPrimData& InPrimData
)

Gets the transform of the specified primitive

Public function

TSet< int32 ...

 

GetSelectedEdges()

Retrieves the selected edge set.

Public function Const

UStaticMeshS...

 

GetSelectedSocket()

Retrieves the currently selected socket from the Socket Manager.

Public function

UStaticMesh ...

 

GetStaticMesh()

Retrieves the current static mesh displayed in the Static Mesh Editor.

Public function Const

UStaticMeshC...

 

GetStaticMeshComponent()

Retrieves the static mesh component.

Public function Const

EViewModeInd...

 

GetViewMode()

Get the active view mode

Public function

FEditorViewp...

 

GetViewportClient()

Get the Static Mesh Editor's the viewport client

Public function Const

bool

 

HasSelectedPrims()

Checks to see if any prims are selected

Public function Const

bool

 

IsPrimValid

(
    const FPrimData& InPrimData
)

Checks to see if the prim data is valid compared with the static mesh

Public function Const

bool

 

IsSelectedPrim

(
    const FPrimData& InPrimData
)

Checks to see if the parsed primitive data is selected

Public function Virtual

FRegisterTab...

 

OnRegisterTabSpawners()

Public function Virtual

FStaticMeshE...

 

OnStaticMeshEditorClosed()

Public function

IStaticMeshE...

 

OnStaticMeshEditorDockingExtentionTabs()

Public function Virtual

FUnregisterT...

 

OnUnregisterTabSpawners()

Public function

void

 

RefreshTool()

Refreshes everything in the Static Mesh Editor.

Public function

void

 

RefreshViewport()

Refreshes the Static Mesh Editor's viewport.

Public function

void

 

RegisterOnPostUndo

(
    const FOnPostUndo& Delegate
)

Registers a delegate to be called after an Undo operation

Public function

void

 

RegisterOnSelectedLODChanged

(
    const FOnSelectedLODChanged& Deleg...,
    bool UnregisterOnRefresh
)

Register callback to be able to be notify when the select LOD is change

Public function

void

 

RemoveInvalidPrims()

Removes all invalid primitives from the list

Public function

void

 

RemoveSelectedPrim

(
    const FPrimData& InPrimData
)

Removes primitive information to the selected prims list

Public function

void

 

RequestRenameSelectedSocket()

Requests to rename selected socket

Public function

void

 

RotateSelectedPrims

(
    const FRotator& InRot
)

Rotates the selected primitives by the specified amount

Public function

void

 

ScaleSelectedPrims

(
    const FVector& InScale
)

Scales the selected primitives by the specified amount

Public function Virtual

void

 

SetCustomData

(
    const int32 Key,
    const int32 CustomData
)

Store the custom data using the key.

Public function Const

void

 

SetPrimTransform

(
    const FPrimData& InPrimData,
    const FTransform& InPrimTransform
)

Sets the transform of the specified primitive

Public function

void

 

SetSecondaryToolbarDisplayName

(
    FText DisplayName
)

Set the display name for the secondary toolbar and its associated menu item

Public function

void

 

SetSelectedSocket

(
    UStaticMeshSocket* InSelectedS...
)

Set the currently selected socket in the Socket Manager.

Public function

void

 

TranslateSelectedPrims

(
    const FVector& InDrag
)

Translates the selected primitives by the specified amount

Public function

void

 

UnregisterOnPostUndo

(
    SWidget* Widget
)

Unregisters a delegate to be called after an Undo operation

Public function

void

 

UnRegisterOnSelectedLODChanged

(
    void* Thing
)

Unregister callback to free up the ressources

Classes

Name

Description

Public struct

FPrimData

Primitive data use to track which aggregate geometry is selected

Public class

FRegisterTabSpawnersEvent

Delegate to be called when the tabs are being registered

Public class

FStaticMeshEditorClosedEvent

Public class

FStaticMeshEditorDockingExtentionTabsEvent

Public class

FUnregisterTabSpawnersEvent

Delegate to be called when the tabs are being unregistered

Typedefs

Name

Description

FOnPostUndo

Post undo.

FOnPostUndoMulticaster

Called after an undo is performed to give child widgets a chance to refresh.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss