Module |
|
Header |
/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorStaticMeshLibrary.h |
Include |
#include "EditorStaticMeshLibrary.h" |
Source |
/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorStaticMeshLibrary.cpp |
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Editor Scripting | StaticMesh")
static int32 SetLodsWithNotification
(
UStaticMesh * StaticMesh,
const FEditorScriptingMeshReductionOptions & ReductionOptions,
bool bApplyChanges
)
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.
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
Parameter |
Description |
---|---|
StaticMesh |
Mesh to process. |
ReductionOptions |
Options on how to generate LODs on the mesh. |
bApplyChanges |
Indicates if change must be notified. |