Navigation
API > API/Editor > API/Editor/StaticMeshEditor > API/Editor/StaticMeshEditor/UStaticMeshEditorSubsystem
Description
Remove then add LODs on a static mesh. The static mesh must have at least LOD 0. The LOD 0 of the static mesh is kept after removal. The build settings of LOD 0 will be applied to all subsequent LODs.
| Name | SetLodsWithNotification |
| Type | function |
| Header File | /Engine/Source/Editor/StaticMeshEditor/Public/StaticMeshEditorSubsystem.h |
| Include Path | #include "StaticMeshEditorSubsystem.h" |
| Source | /Engine/Source/Editor/StaticMeshEditor/Private/StaticMeshEditorSubsystem.cpp |
UFUNCTION (BlueprintCallable, Category="Static Mesh Utilities")
int32 SetLodsWithNotification
(
UStaticMesh * StaticMesh,
const FStaticMeshReductionOptions & ReductionOptions,
bool bApplyChanges
)
the number of LODs generated on the input mesh. An negative value indicates that the reduction could not be performed. See log for explanation. No action will be performed if ReductionOptions.ReductionSettings is empty
Parameters
| Name | Remarks |
|---|---|
| StaticMesh | Mesh to process. |
| ReductionOptions | Options on how to generate LODs on the mesh. |
| bApplyChanges | Indicates if change must be notified. |