Version: Unity 6.2 (6000.2)
LanguageEnglish
  • C#

Mesh.SetLod

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual

Declaration

public void SetLod(int submesh, int level, MeshLodRange levelRange, Rendering.MeshUpdateFlags flags);

Parameters

Parameter Description
subMeshIndex Sub-mesh to set LOD for.
level Level to set.
levelRange Range for the set LOD.
flags Mesh update flags. If set to DontValidateIndices, then index range validation is skipped.

Description

Sets a Mesh LOD range (index start and index count) for a given sub-mesh and level of detail.

Note that the Mesh LOD range should be relative to the sub-mesh holding the LOD. See MeshLodRange for more information.