UEditorStaticMeshLibrary::SetLodsWithNotification

Remove then add LODs on a static mesh.

Windows
MacOS
Linux

References

Module

EditorScriptingUtilities

Header

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorStaticMeshLibrary.h

Include

#include "EditorStaticMeshLibrary.h"

Source

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorStaticMeshLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Editor Scripting | StaticMesh")
static int32 SetLodsWithNotification
(
    UStaticMesh * StaticMesh,
    const FEditorScriptingMeshReductionOptions & ReductionOptions,
    bool bApplyChanges
)

Remarks

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.

Returns

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

Parameter

Description

StaticMesh

Mesh to process.

ReductionOptions

Options on how to generate LODs on the mesh.

bApplyChanges

Indicates if change must be notified.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss