Navigation
API > API/Editor > API/Editor/StaticMeshEditor
Public interface to Static Mesh Editor
| Name | IStaticMeshEditor |
| Type | class |
| Header File | /Engine/Source/Editor/StaticMeshEditor/Public/IStaticMeshEditor.h |
| Include Path | #include "IStaticMeshEditor.h" |
Syntax
class IStaticMeshEditor : public FAssetEditorToolkit
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FAssetEditorToolkit → IStaticMeshEditor
Implements Interfaces
Classes
| Name | Remarks |
|---|---|
| FRegisterTabSpawnersEvent | Delegate to be called when the tabs are being registered |
| FStaticMeshEditorClosedEvent | |
| FStaticMeshEditorDockingExtentionTabsEvent | |
| FUnregisterTabSpawnersEvent | Delegate to be called when the tabs are being unregistered |
Structs
| Name | Remarks |
|---|---|
| FPrimData | Primitive data use to track which aggregate geometry is selected |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnPostUndo | FOnPostUndoMulticaster::FDelegate | Post undo. | IStaticMeshEditor.h |
| FOnPostUndoMulticaster | TMulticastDelegate_NoParams< void > | Called after an undo is performed to give child widgets a chance to refresh. | IStaticMeshEditor.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OnStaticMeshEditorDockingExtentionTabs | IStaticMeshEditor::FStaticMeshEditorClosedEvent & | IStaticMeshEditor.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| RegisterTabSpawnersEvent | FRegisterTabSpawnersEvent | IStaticMeshEditor.h | ||
| StaticMeshEditorClosedEvent | FStaticMeshEditorClosedEvent | IStaticMeshEditor.h | ||
| StaticMeshEditorDockingExtentionTabsEvent | FStaticMeshEditorDockingExtentionTabsEvent | IStaticMeshEditor.h | ||
| UnregisterTabSpawnersEvent | FUnregisterTabSpawnersEvent | IStaticMeshEditor.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddSelectedPrim
(
const FPrimData& InPrimData, |
Adds primitive information to the selected prims list | IStaticMeshEditor.h | |
void AddSelectedSocket
(
UStaticMeshSocket* InSelectedSocket |
Adds a socket to the currently selected sockets in the Socket Manager. | IStaticMeshEditor.h | |
void BroadcastOnSelectedLODChanged() |
Broadcast when selected LOD changes | IStaticMeshEditor.h | |
bool CalcSelectedPrimsAABB
(
FBox& OutBox |
Calculates the bounding box of our selected primitives | IStaticMeshEditor.h | |
void ClearSelectedPrims() |
Removes all primitive data from the list | IStaticMeshEditor.h | |
int32 CopySelectedPrims() |
Copy all the selected primitives to clipboard | IStaticMeshEditor.h | |
void DoDecomp
(
uint32 InHullCount, |
This is called when Apply is pressed in the dialog. Does the actual processing. | IStaticMeshEditor.h | |
void DuplicateSelectedPrims
(
const FVector* InOffset |
Duplicates all the selected primitives and selects them | IStaticMeshEditor.h | |
void DuplicateSelectedSocket() |
Duplicate the first selected socket | IStaticMeshEditor.h | |
void DuplicateSelectedSockets() |
Duplicate the selected sockets | IStaticMeshEditor.h | |
int32 GetCurrentLODIndex() |
Retrieves the current LOD index | IStaticMeshEditor.h | |
int32 GetCurrentLODLevel() |
Retrieves the current LOD level. 0 is auto, 1 is base. | IStaticMeshEditor.h | |
int32 GetCurrentUVChannel() |
Retrieves the currently selected UV channel. | IStaticMeshEditor.h | |
virtual int32 GetCustomData
(
const int32 Key |
Retrieve editor custom data. Return INDEX_NONE if the key is invalid | IStaticMeshEditor.h | |
bool GetLastSelectedPrimTransform
(
FTransform& OutTransform |
Fetches the transform of the last primitive to be selected | IStaticMeshEditor.h | |
int32 GetNumTriangles
(
int32 LODLevel |
Retrieves the number of triangles in the current static mesh or it's forced LOD. | IStaticMeshEditor.h | |
int32 GetNumUVChannels
(
int32 LODLevel |
Retrieves the number of UV channels available. | IStaticMeshEditor.h | |
int32 GetNumVertices
(
int32 LODLevel |
Retrieves the number of vertices in the current static mesh or it's forced LOD. | IStaticMeshEditor.h | |
FTransform GetPrimTransform
(
const FPrimData& InPrimData |
Gets the transform of the specified primitive | IStaticMeshEditor.h | |
TSet< int32 > & GetSelectedEdges() |
Retrieves the selected edge set. | IStaticMeshEditor.h | |
UStaticMeshSocket * GetSelectedSocket() |
Retrieves the first currently selected socket from the Socket Manager. | IStaticMeshEditor.h | |
TArray< UStaticMeshSocket * > GetSelectedSockets() |
Retrieves the currently selected sockets from the Socket Manager. | IStaticMeshEditor.h | |
UStaticMesh * GetStaticMesh() |
Retrieves the current static mesh displayed in the Static Mesh Editor. | IStaticMeshEditor.h | |
UStaticMeshComponent * GetStaticMeshComponent() |
Retrieves the static mesh component. | IStaticMeshEditor.h | |
EViewModeIndex GetViewMode() |
Get the active view mode | IStaticMeshEditor.h | |
FEditorViewportClient & GetViewportClient() |
Get the Static Mesh Editor's the viewport client | IStaticMeshEditor.h | |
bool HasSelectedPrims() |
Checks to see if any prims are selected | IStaticMeshEditor.h | |
bool HasSelectedSockets() |
Returns true if at least one socket is selected. | IStaticMeshEditor.h | |
bool IsPrimValid
(
const FPrimData& InPrimData |
Checks to see if the prim data is valid compared with the static mesh | IStaticMeshEditor.h | |
bool IsSelectedPrim
(
const FPrimData& InPrimData |
Checks to see if the parsed primitive data is selected | IStaticMeshEditor.h | |
virtual FRegisterTabSpawnersEvent & OnRegisterTabSpawners() |
IStaticMeshEditor.h | ||
virtual FStaticMeshEditorClosedEvent & OnStaticMeshEditorClosed() |
IStaticMeshEditor.h | ||
IStaticMeshEditor::FStaticMeshEditorDockingExtentionTabsEvent TBaseMulticastDelegate_OneParam OnStaticMeshEditorDockingExtentionTabs() |
IStaticMeshEditor.h | ||
virtual FUnregisterTabSpawnersEvent & OnUnregisterTabSpawners() |
IStaticMeshEditor.h | ||
int32 PasteCopiedPrims() |
Paste all the selected primitives from clipboard | IStaticMeshEditor.h | |
void RefreshTool() |
Refreshes everything in the Static Mesh Editor. | IStaticMeshEditor.h | |
void RefreshViewport() |
Refreshes the Static Mesh Editor's viewport. | IStaticMeshEditor.h | |
void RegisterOnPostUndo
(
const FOnPostUndo& Delegate |
Registers a delegate to be called after an Undo operation | IStaticMeshEditor.h | |
void RegisterOnSelectedLODChanged
(
const FOnSelectedLODChanged& Delegate, |
Register callback to be able to be notify when the select LOD is change | IStaticMeshEditor.h | |
void RemoveInvalidPrims() |
Removes all invalid primitives from the list | IStaticMeshEditor.h | |
void RemoveSelectedPrim
(
const FPrimData& InPrimData |
Removes primitive information to the selected prims list | IStaticMeshEditor.h | |
void RemoveSelectedSocket
(
const UStaticMeshSocket* InSelectedSocket |
Removes a socket form the currently selected sockets in the Socket Manager. | IStaticMeshEditor.h | |
void RequestRenameSelectedSocket() |
Requests to rename selected socket | IStaticMeshEditor.h | |
void RotateSelectedPrims
(
const FRotator& InRot |
Rotates the selected primitives by the specified amount | IStaticMeshEditor.h | |
void ScaleSelectedPrims
(
const FVector& InScale |
Scales the selected primitives by the specified amount | IStaticMeshEditor.h | |
virtual void SetCustomData
(
const int32 Key, |
Store the custom data using the key. | IStaticMeshEditor.h | |
void SetPrimTransform
(
const FPrimData& InPrimData, |
Sets the transform of the specified primitive | IStaticMeshEditor.h | |
void SetSecondaryToolbarDisplayName
(
FText DisplayName |
Set the display name for the secondary toolbar and its associated menu item | IStaticMeshEditor.h | |
void SetSelectedSocket
(
UStaticMeshSocket* InSelectedSocket |
Set the currently selected socket in the Socket Manager. | IStaticMeshEditor.h | |
void TranslateSelectedPrims
(
const FVector& InDrag |
Translates the selected primitives by the specified amount | IStaticMeshEditor.h | |
void UnregisterOnPostUndo
(
SWidget* Widget |
Unregisters a delegate to be called after an Undo operation | IStaticMeshEditor.h | |
void UnRegisterOnSelectedLODChanged
(
FDelegateUserObject Thing |
Unregister callback to free up the ressources | IStaticMeshEditor.h |