SetLod(int, int, MeshLodRange, MeshUpdateFlags)
Sets a Mesh LOD range (index start and index count) for a given sub-mesh and level of detail.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public void SetLod(int submesh, int level, MeshLodRange levelRange, MeshUpdateFlags flags = MeshUpdateFlags.Default)
Parameters
Level to set.
Range for the set LOD.
Mesh update flags. If set to DontValidateIndices, then index range validation is skipped.
Remarks
Note that the Mesh LOD range should be relative to the sub-mesh holding the LOD. See MeshLodRange for more information.