Navigation
API > API/Editor > API/Editor/StaticMeshEditor
UStaticMeshEditorSubsystem Subsystem for exposing static mesh functionality to scripts
| Name | UStaticMeshEditorSubsystem |
| Type | class |
| Header File | /Engine/Source/Editor/StaticMeshEditor/Public/StaticMeshEditorSubsystem.h |
| Include Path | #include "StaticMeshEditorSubsystem.h" |
Syntax
UCLASS ()
class UStaticMeshEditorSubsystem : public UEditorSubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UDynamicSubsystem → UEditorSubsystem → UStaticMeshEditorSubsystem
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UStaticMeshEditorSubsystem() |
StaticMeshEditorSubsystem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 AddSimpleCollisions
(
UStaticMesh* StaticMesh, |
Same as AddSimpleCollisionsWithNotification but changes are automatically applied. | StaticMeshEditorSubsystem.h |
|
int32 AddSimpleCollisionsWithNotification
(
UStaticMesh* StaticMesh, |
Add simple collisions to a static mesh. | StaticMeshEditorSubsystem.h |
|
bool AddUVChannel
(
UStaticMesh* StaticMesh, |
Adds an empty UV channel at the end of the existing channels on the given LOD of a StaticMesh. | StaticMeshEditorSubsystem.h |
|
bool BulkSetConvexDecompositionCollisions
(
const TArray< UStaticMesh* >& StaticMeshes, |
Same as SetConvexDecompositionCollisionsWithNotification but changes are automatically applied. | StaticMeshEditorSubsystem.h |
|
bool BulkSetConvexDecompositionCollisionsWithNotification
(
const TArray< UStaticMesh* >& StaticMeshes, |
Compute convex collisions for a set of static meshes. | StaticMeshEditorSubsystem.h |
|
bool CreateProxyMeshActor
(
const TArray< class AStaticMeshActor* >& ActorsToMerge, |
Build a proxy mesh actor that can replace a set of mesh actors. | StaticMeshEditorSubsystem.h |
|
void EnableSectionAffectDistanceFieldLighting
(
UStaticMesh* StaticMesh, |
Enables/disables mesh section affects distance field lighting for a specific LOD. | StaticMeshEditorSubsystem.h |
|
void EnableSectionCastShadow
(
UStaticMesh* StaticMesh, |
Enables/disables mesh section shadow casting for a specific LOD. | StaticMeshEditorSubsystem.h |
|
void EnableSectionCollision
(
UStaticMesh* StaticMesh, |
Enables/disables mesh section collision for a specific LOD. | StaticMeshEditorSubsystem.h |
|
void EnableSectionForceOpaque
(
UStaticMesh* StaticMesh, |
Set/unset mesh section to be forcefully opaque for a specific LOD. | StaticMeshEditorSubsystem.h |
|
void EnableSectionVisibleInRayTracing
(
UStaticMesh* StaticMesh, |
Enables/disables mesh section's visibility in ray tracing for a specific LOD. | StaticMeshEditorSubsystem.h |
|
bool GenerateBoxUVChannel
(
UStaticMesh* StaticMesh, |
Generates box UV mapping in the specified UV channel on the given LOD of a StaticMesh. | StaticMeshEditorSubsystem.h |
|
bool GenerateCylindricalUVChannel
(
UStaticMesh* StaticMesh, |
Generates cylindrical UV mapping in the specified UV channel on the given LOD of a StaticMesh. | StaticMeshEditorSubsystem.h |
|
bool GeneratePlanarUVChannel
(
UStaticMesh* StaticMesh, |
Generates planar UV mapping in the specified UV channel on the given LOD of a StaticMesh. | StaticMeshEditorSubsystem.h |
|
TEnumAsByte< ECollisionTraceFlag > GetCollisionComplexity
(
const UStaticMesh* StaticMesh |
Get the Collision Trace behavior of a static mesh | StaticMeshEditorSubsystem.h |
|
int32 GetConvexCollisionCount
(
const UStaticMesh* StaticMesh |
Get number of convex collisions present on a static mesh. | StaticMeshEditorSubsystem.h |
|
void GetLodBuildSettings
(
const UStaticMesh* StaticMesh, |
Copy the build options with the specified LOD build settings. | StaticMeshEditorSubsystem.h |
|
int32 GetLodCount
(
const UStaticMesh* StaticMesh |
Get number of LODs present on a static mesh. | StaticMeshEditorSubsystem.h |
|
FName GetLODGroup
(
const UStaticMesh* StaticMesh |
Get the LODGroup for the specified static mesh | StaticMeshEditorSubsystem.h |
|
int32 GetLODMaterialSlot
(
const UStaticMesh* StaticMesh, |
Gets the material slot used for a specific LOD section. | StaticMeshEditorSubsystem.h |
|
void GetLodReductionSettings
(
const UStaticMesh* StaticMesh, |
Copy the reduction options with the specified LOD reduction settings. | StaticMeshEditorSubsystem.h |
|
TArray< float > GetLodScreenSizes
(
const UStaticMesh* StaticMesh |
Get an array of LOD screen sizes for evaluation. | StaticMeshEditorSubsystem.h |
|
FMeshNaniteSettings GetNaniteSettings
(
const UStaticMesh* StaticMesh |
Get the Nanite Settings for the mesh | StaticMeshEditorSubsystem.h |
|
FString GetNaniteSourceFilename
(
const UStaticMesh* StaticMesh |
Get the Nanite hi-res source filename | StaticMeshEditorSubsystem.h |
|
int32 GetNumberMaterials
(
const UStaticMesh* StaticMesh |
Get number of Materials for a StaticMesh | StaticMeshEditorSubsystem.h |
|
int32 GetNumberVerts
(
const UStaticMesh* StaticMesh, |
Get number of StaticMesh verts for an LOD | StaticMeshEditorSubsystem.h |
|
int32 GetNumUVChannels
(
const UStaticMesh* StaticMesh, |
Returns the number of UV channels for the given LOD of a StaticMesh. | StaticMeshEditorSubsystem.h |
|
int32 GetSimpleCollisionCount
(
const UStaticMesh* StaticMesh |
Get number of simple collisions present on a static mesh. | StaticMeshEditorSubsystem.h |
|
bool HasInstanceVertexColors
(
const UStaticMeshComponent* StaticMeshComponent |
Check whether a static mesh component has vertex colors | StaticMeshEditorSubsystem.h |
|
bool HasVertexColors
(
const UStaticMesh* StaticMesh |
Check whether a static mesh has vertex colors | StaticMeshEditorSubsystem.h |
|
int32 ImportLOD
(
UStaticMesh* BaseStaticMesh, |
Import or re-import a LOD into the specified base mesh. | StaticMeshEditorSubsystem.h |
|
bool ImportNaniteHiResMesh
(
UStaticMesh* StaticMesh, |
Import or re-import the nanite hi-res mesh into the specified base mesh. | StaticMeshEditorSubsystem.h |
|
bool InsertUVChannel
(
UStaticMesh* StaticMesh, |
Inserts an empty UV channel at the specified channel index on the given LOD of a StaticMesh. | StaticMeshEditorSubsystem.h |
|
bool IsSectionAffectDistanceFieldLightingEnabled
(
const UStaticMesh* StaticMesh, |
Checks if a specific LOD mesh section affects distance field lighting. | StaticMeshEditorSubsystem.h |
|
bool IsSectionCastShadowEnabled
(
const UStaticMesh* StaticMesh, |
Checks if a specific LOD mesh section can cast shadows. | StaticMeshEditorSubsystem.h |
|
bool IsSectionCollisionEnabled
(
const UStaticMesh* StaticMesh, |
Checks if a specific LOD mesh section has collision. | StaticMeshEditorSubsystem.h |
|
bool IsSectionForceOpaqueEnabled
(
const UStaticMesh* StaticMesh, |
Checks if a specific LOD mesh section is forced to be opaque. | StaticMeshEditorSubsystem.h |
|
bool IsSectionVisibleInRayTracingEnabled
(
const UStaticMesh* StaticMesh, |
Checks if a specific LOD mesh section is visible in ray tracing. | StaticMeshEditorSubsystem.h |
|
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. | StaticMeshEditorSubsystem.h |
|
bool MergeStaticMeshActors
(
const TArray< class AStaticMeshActor* >& ActorsToMerge, |
Merge the meshes into a unique mesh with the provided StaticMeshActors. | StaticMeshEditorSubsystem.h |
|
bool ReimportAllCustomLODs
(
UStaticMesh* StaticMesh |
Re-import all the custom LODs present in the specified static mesh. | StaticMeshEditorSubsystem.h |
|
bool RemoveCollisions
(
UStaticMesh* StaticMesh |
Same as RemoveCollisionsWithNotification but changes are applied. | StaticMeshEditorSubsystem.h |
|
bool RemoveCollisionsWithNotification
(
UStaticMesh* StaticMesh, |
Remove collisions from a static mesh. | StaticMeshEditorSubsystem.h |
|
bool RemoveLods
(
UStaticMesh* StaticMesh |
Remove LODs on a static mesh except LOD 0. | StaticMeshEditorSubsystem.h |
|
bool RemoveUVChannel
(
UStaticMesh* StaticMesh, |
Removes the UV channel at the specified channel index on the given LOD of a StaticMesh. | StaticMeshEditorSubsystem.h |
|
void ReplaceMeshComponentsMaterials
(
const TArray< class UMeshComponent* >& MeshComponents, |
Find the references of the material MaterialToReplaced on all the MeshComponents provided and replace it by NewMaterial. | StaticMeshEditorSubsystem.h |
|
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. | StaticMeshEditorSubsystem.h |
|
void ReplaceMeshComponentsMeshes
(
const TArray< class UStaticMeshComponent* >& MeshComponents, |
Find the references of the mesh MeshToBeReplaced on all the MeshComponents provided and replace it by NewMesh. | StaticMeshEditorSubsystem.h |
|
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. | StaticMeshEditorSubsystem.h |
|
void SetAllowCPUAccess
(
UStaticMesh* StaticMesh, |
Sets StaticMeshFlag bAllowCPUAccess | StaticMeshEditorSubsystem.h |
|
bool SetConvexDecompositionCollisions
(
UStaticMesh* StaticMesh, |
Same as SetConvexDecompositionCollisionsWithNotification but changes are automatically applied. | StaticMeshEditorSubsystem.h |
|
bool SetConvexDecompositionCollisionsWithNotification
(
UStaticMesh* StaticMesh, |
Add a convex collision to a static mesh. | StaticMeshEditorSubsystem.h |
|
bool SetGenerateLightmapUVs
(
UStaticMesh* StaticMesh, |
Set Generate Lightmap UVs for StaticMesh | StaticMeshEditorSubsystem.h |
|
void SetLodBuildSettings
(
UStaticMesh* StaticMesh, |
Set the LOD build options for the specified LOD index. | StaticMeshEditorSubsystem.h |
|
int32 SetLodFromStaticMesh
(
UStaticMesh* DestinationStaticMesh, |
Adds or create a LOD at DestinationLodIndex using the geometry from SourceStaticMesh SourceLodIndex | StaticMeshEditorSubsystem.h |
|
bool SetLODGroup
(
UStaticMesh* StaticMesh, |
Set the LODGroup for the specified static mesh | StaticMeshEditorSubsystem.h |
|
void SetLODMaterialSlot
(
UStaticMesh* StaticMesh, |
Sets the material slot for a specific LOD. | StaticMeshEditorSubsystem.h |
|
void SetLodReductionSettings
(
UStaticMesh* StaticMesh, |
Set the LOD reduction for the specified LOD index. | StaticMeshEditorSubsystem.h |
|
int32 SetLods
(
UStaticMesh* StaticMesh, |
Same as SetLodsWithNotification but changes are applied. | StaticMeshEditorSubsystem.h |
|
bool SetLodScreenSizes
(
UStaticMesh* StaticMesh, |
Set LOD screen sizes. | StaticMeshEditorSubsystem.h |
|
int32 SetLodsWithNotification
(
UStaticMesh* StaticMesh, |
Remove then add LODs on a static mesh. | StaticMeshEditorSubsystem.h |
|
void SetNaniteSettings
(
UStaticMesh* StaticMesh, |
Get the Nanite Settings for the mesh | StaticMeshEditorSubsystem.h |
|
bool UpdateNaniteSourceFilename
(
UStaticMesh* StaticMesh, |
Update the Nanite hi-res source filename. | StaticMeshEditorSubsystem.h |
|
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool CanModifyStaticMeshSection
(
const UStaticMesh* StaticMesh, |
Checks if section and lod indices are valid indices. | StaticMeshEditorSubsystem.h |