Navigation
API > API/Editor > API/Editor/StaticMeshEditor
Inheritance Hierarchy
- IAssetEditorInstance
- FBaseToolkit
- TSharedFromThis
- FAssetEditorToolkit
- IStaticMeshEditor
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
| Type | Name | Description | |
|---|---|---|---|
| IStaticMeshEditor::FStaticMeshEditorClosedEvent & | OnStaticMeshEditorDockingExtentionTabs |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddSelectedPrim
(
const FPrimData& InPrimData, |
Adds primitive information to the selected prims list | |
| void | Broadcast when selected LOD changes | ||
| bool | CalcSelectedPrimsAABB
(
FBox& OutBox |
Calculates the bounding box of our selected primitives | |
| void | Removes all primitive data from the list | ||
| int32 | Copy all the selected primitives to clipboard | ||
| void | DoDecomp
(
uint32 InHullCount, |
This is called when Apply is pressed in the dialog. Does the actual processing. | |
| void | DuplicateSelectedPrims
(
const FVector* InOffset |
Duplicates all the selected primitives and selects them | |
| void | Duplicate the selected socket | ||
| int32 | Retrieves the current LOD index | ||
| int32 | Retrieves the current LOD level. 0 is auto, 1 is base. | ||
| int32 | Retrieves the currently selected UV channel. | ||
| int32 | GetCustomData
(
const int32 Key |
Retrieve editor custom data. Return INDEX_NONE if the key is invalid | |
| bool | GetLastSelectedPrimTransform
(
FTransform& OutTransform |
Fetches the transform of the last primitive to be selected | |
| int32 | GetNumTriangles
(
int32 LODLevel |
Retrieves the number of triangles in the current static mesh or it's forced LOD. | |
| int32 | GetNumUVChannels
(
int32 LODLevel |
Retrieves the number of UV channels available. | |
| int32 | GetNumVertices
(
int32 LODLevel |
Retrieves the number of vertices in the current static mesh or it's forced LOD. | |
| FTransform | GetPrimTransform
(
const FPrimData& InPrimData |
Gets the transform of the specified primitive | |
| TSet< int32 > & | Retrieves the selected edge set. | ||
| UStaticMeshSocket * | Retrieves the currently selected socket from the Socket Manager. | ||
| UStaticMesh * | Retrieves the current static mesh displayed in the Static Mesh Editor. | ||
| UStaticMeshComponent * | Retrieves the static mesh component. | ||
| EViewModeIndex | GetViewMode () |
Get the active view mode | |
| FEditorViewportClient & | Get the Static Mesh Editor's the viewport client | ||
| bool | Checks to see if any prims are selected | ||
| bool | IsPrimValid
(
const FPrimData& InPrimData |
Checks to see if the prim data is valid compared with the static mesh | |
| bool | IsSelectedPrim
(
const FPrimData& InPrimData |
Checks to see if the parsed primitive data is selected | |
| FRegisterTabSpawnersEvent & | |||
| FStaticMeshEditorClosedEvent & | |||
| IStaticMeshEditor::FStaticMeshEditorDockingExtentionTabsEvent TBaseMulticastDelegate_OneParam | |||
| FUnregisterTabSpawnersEvent & | |||
| int32 | Paste all the selected primitives from clipboard | ||
| void | RefreshTool () |
Refreshes everything in the Static Mesh Editor. | |
| void | Refreshes the Static Mesh Editor's viewport. | ||
| void | RegisterOnPostUndo
(
const FOnPostUndo& Delegate |
Registers a delegate to be called after an Undo operation | |
| void | RegisterOnSelectedLODChanged
(
const FOnSelectedLODChanged& Delegate, |
Register callback to be able to be notify when the select LOD is change | |
| void | Removes all invalid primitives from the list | ||
| void | RemoveSelectedPrim
(
const FPrimData& InPrimData |
Removes primitive information to the selected prims list | |
| void | Requests to rename selected socket | ||
| void | RotateSelectedPrims
(
const FRotator& InRot |
Rotates the selected primitives by the specified amount | |
| void | ScaleSelectedPrims
(
const FVector& InScale |
Scales the selected primitives by the specified amount | |
| void | SetCustomData
(
const int32 Key, |
Store the custom data using the key. | |
| void | SetPrimTransform
(
const FPrimData& InPrimData, |
Sets the transform of the specified primitive | |
| void | SetSecondaryToolbarDisplayName
(
FText DisplayName |
Set the display name for the secondary toolbar and its associated menu item | |
| void | SetSelectedSocket
(
UStaticMeshSocket* InSelectedSocket |
Set the currently selected socket in the Socket Manager. | |
| void | TranslateSelectedPrims
(
const FVector& InDrag |
Translates the selected primitives by the specified amount | |
| void | UnregisterOnPostUndo
(
SWidget* Widget |
Unregisters a delegate to be called after an Undo operation | |
| void | UnRegisterOnSelectedLODChanged
(
void* Thing |
Unregister callback to free up the ressources |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FPrimData | Primitive data use to track which aggregate geometry is selected | ||
| FRegisterTabSpawnersEvent | Delegate to be called when the tabs are being registered | ||
| FStaticMeshEditorClosedEvent | |||
| FStaticMeshEditorDockingExtentionTabsEvent | |||
| 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. |