Navigation
API > API/Editor > API/Editor/StaticMeshEditor
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UDynamicSubsystem
- UEditorSubsystem
- UStaticMeshEditorSubsystem
References
| Module | StaticMeshEditor |
| Header | /Engine/Source/Editor/StaticMeshEditor/Public/StaticMeshEditorSubsystem.h |
| Include | #include "StaticMeshEditorSubsystem.h" |
Syntax
class UStaticMeshEditorSubsystem : public UEditorSubsystem
Remarks
UStaticMeshEditorSubsystem Subsystem for exposing static mesh functionality to scripts
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | AddSimpleCollisions
(
UStaticMesh* StaticMesh, |
Same as AddSimpleCollisionsWithNotification but changes are automatically applied. | |
| int32 | AddSimpleCollisionsWithNotification
(
UStaticMesh* StaticMesh, |
Add simple collisions to a static mesh. | |
| bool | AddUVChannel
(
UStaticMesh* StaticMesh, |
Adds an empty UV channel at the end of the existing channels on the given LOD of a StaticMesh. | |
| bool | BulkSetConvexDecompositionCollisions
(
const TArray< UStaticMesh* >& StaticMeshes, |
Same as SetConvexDecompositionCollisionsWithNotification but changes are automatically applied. | |
| bool | BulkSetConvexDecompositionCollisionsWithNotification
(
const TArray< UStaticMesh* >& StaticMeshes, |
Compute convex collisions for a set of static meshes. | |
| bool | CreateProxyMeshActor
(
const TArray< class AStaticMeshActor* >& ActorsToMerge, |
Build a proxy mesh actor that can replace a set of mesh actors. | |
| void | EnableSectionCastShadow
(
UStaticMesh* StaticMesh, |
Enables/disables mesh section shadow casting for a specific LOD. | |
| void | EnableSectionCollision
(
UStaticMesh* StaticMesh, |
Enables/disables mesh section collision for a specific LOD. | |
| bool | GenerateBoxUVChannel
(
UStaticMesh* StaticMesh, |
Generates box UV mapping in the specified UV channel on the given LOD of a StaticMesh. | |
| bool | GenerateCylindricalUVChannel
(
UStaticMesh* StaticMesh, |
Generates cylindrical UV mapping in the specified UV channel on the given LOD of a StaticMesh. | |
| bool | GeneratePlanarUVChannel
(
UStaticMesh* StaticMesh, |
Generates planar UV mapping in the specified UV channel on the given LOD of a StaticMesh. | |
| TEnumAsByte< ECollisionTraceFlag > | GetCollisionComplexity
(
UStaticMesh* StaticMesh |
Get the Collision Trace behavior of a static mesh | |
| int32 | GetConvexCollisionCount
(
UStaticMesh* StaticMesh |
Get number of convex collisions present on a static mesh. | |
| void | GetLodBuildSettings
(
const UStaticMesh* StaticMesh, |
Copy the build options with the specified LOD build settings. | |
| int32 | GetLodCount
(
UStaticMesh* StaticMesh |
Get number of LODs present on a static mesh. | |
| FName | GetLODGroup
(
UStaticMesh* StaticMesh |
Get the LODGroup for the specified static mesh | |
| int32 | GetLODMaterialSlot
(
UStaticMesh* StaticMesh, |
Gets the material slot used for a specific LOD section. | |
| void | GetLodReductionSettings
(
const UStaticMesh* StaticMesh, |
Copy the reduction options with the specified LOD reduction settings. | |
| TArray< float > | GetLodScreenSizes
(
UStaticMesh* StaticMesh |
Get an array of LOD screen sizes for evaluation. | |
| FMeshNaniteSettings | GetNaniteSettings
(
UStaticMesh* StaticMesh |
Get the Nanite Settings for the mesh | |
| int32 | GetNumberMaterials
(
UStaticMesh* StaticMesh |
Get number of Materials for a StaticMesh | |
| int32 | GetNumberVerts
(
UStaticMesh* StaticMesh, |
Get number of StaticMesh verts for an LOD | |
| int32 | GetNumUVChannels
(
UStaticMesh* StaticMesh, |
Returns the number of UV channels for the given LOD of a StaticMesh. | |
| int32 | GetSimpleCollisionCount
(
UStaticMesh* StaticMesh |
Get number of simple collisions present on a static mesh. | |
| bool | HasInstanceVertexColors
(
UStaticMeshComponent* StaticMeshComponent |
Check whether a static mesh component has vertex colors | |
| bool | HasVertexColors
(
UStaticMesh* StaticMesh |
Check whether a static mesh has vertex colors | |
| int32 | ImportLOD
(
UStaticMesh* BaseStaticMesh, |
Import or re-import a LOD into the specified base mesh. | |
| bool | InsertUVChannel
(
UStaticMesh* StaticMesh, |
Inserts an empty UV channel at the specified channel index on the given LOD of a StaticMesh. | |
| bool | IsSectionCollisionEnabled
(
UStaticMesh* StaticMesh, |
Checks if a specific LOD mesh section has collision. | |
| AActor * | JoinStaticMeshActors
(
const TArray< class AStaticMeshActor* >& ActorsToJoin, |
Create a new Actor in the level that contains a duplicate of all the Actors Static Meshes Component. | |
| bool | MergeStaticMeshActors
(
const TArray< class AStaticMeshActor* >& ActorsToMerge, |
Merge the meshes into a unique mesh with the provided StaticMeshActors. | |
| bool | ReimportAllCustomLODs
(
UStaticMesh* StaticMesh |
Re-import all the custom LODs present in the specified static mesh. | |
| bool | RemoveCollisions
(
UStaticMesh* StaticMesh |
Same as RemoveCollisionsWithNotification but changes are applied. | |
| bool | RemoveCollisionsWithNotification
(
UStaticMesh* StaticMesh, |
Remove collisions from a static mesh. | |
| bool | RemoveLods
(
UStaticMesh* StaticMesh |
Remove LODs on a static mesh except LOD 0. | |
| bool | RemoveUVChannel
(
UStaticMesh* StaticMesh, |
Removes the UV channel at the specified channel index on the given LOD of a StaticMesh. | |
| void | ReplaceMeshComponentsMaterials
(
const TArray< class UMeshComponent* >& MeshComponents, |
Find the references of the material MaterialToReplaced on all the MeshComponents provided and replace it by NewMaterial. | |
| void | ReplaceMeshComponentsMaterialsOnActors
(
const TArray< class AActor* >& Actors, |
Find the references of the material MaterialToReplaced on all the MeshComponents of all the Actors provided and replace it by NewMaterial. | |
| void | ReplaceMeshComponentsMeshes
(
const TArray< class UStaticMeshComponent* >& MeshComponents, |
Find the references of the mesh MeshToBeReplaced on all the MeshComponents provided and replace it by NewMesh. | |
| void | ReplaceMeshComponentsMeshesOnActors
(
const TArray< class AActor* >& Actors, |
Find the references of the mesh MeshToBeReplaced on all the MeshComponents of all the Actors provided and replace it by NewMesh. | |
| void | SetAllowCPUAccess
(
UStaticMesh* StaticMesh, |
Sets StaticMeshFlag bAllowCPUAccess | |
| bool | SetConvexDecompositionCollisions
(
UStaticMesh* StaticMesh, |
Same as SetConvexDecompositionCollisionsWithNotification but changes are automatically applied. | |
| bool | SetConvexDecompositionCollisionsWithNotification
(
UStaticMesh* StaticMesh, |
Add a convex collision to a static mesh. | |
| bool | SetGenerateLightmapUVs
(
UStaticMesh* StaticMesh, |
Set Generate Lightmap UVs for StaticMesh | |
| void | SetLodBuildSettings
(
UStaticMesh* StaticMesh, |
Set the LOD build options for the specified LOD index. | |
| int32 | SetLodFromStaticMesh
(
UStaticMesh* DestinationStaticMesh, |
Adds or create a LOD at DestinationLodIndex using the geometry from SourceStaticMesh SourceLodIndex | |
| bool | SetLODGroup
(
UStaticMesh* StaticMesh, |
Set the LODGroup for the specified static mesh | |
| void | SetLODMaterialSlot
(
UStaticMesh* StaticMesh, |
Sets the material slot for a specific LOD. | |
| void | SetLodReductionSettings
(
UStaticMesh* StaticMesh, |
Set the LOD reduction for the specified LOD index. | |
| int32 | SetLods
(
UStaticMesh* StaticMesh, |
Same as SetLodsWithNotification but changes are applied. | |
| bool | SetLodScreenSizes
(
UStaticMesh* StaticMesh, |
Set LOD screen sizes. | |
| int32 | SetLodsWithNotification
(
UStaticMesh* StaticMesh, |
Remove then add LODs on a static mesh. | |
| void | SetNaniteSettings
(
UStaticMesh* StaticMesh, |
Get the Nanite Settings for the mesh |