SetLods
Sets the Mesh LOD ranges (index start and index count) for a given sub-mesh and Mesh LOD with a list.
Read time 3 minutesLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
SetLods(List<MeshLodRange>, int, MeshUpdateFlags)
Sets the Mesh LOD ranges (index start and index count) for a given sub-mesh and Mesh LOD with a list.
public void SetLods(List<MeshLodRange> levels, int submesh, MeshUpdateFlags flags = MeshUpdateFlags.Default)
Parameters
Sub-mesh index to set LODs for.
Mesh update flags. If set to DontValidateIndices, then index range validation is skipped.
Remarks
Note that each Mesh LOD range should be relative to the sub-mesh holding the LOD. See MeshLodRange for more information.
SetLods(List<MeshLodRange>, int, int, int, MeshUpdateFlags)
Sets the Mesh LOD ranges (index start and index count) for a given sub-mesh and Mesh LOD with a list.
public void SetLods(List<MeshLodRange> levels, int start, int count, int submesh, MeshUpdateFlags flags = MeshUpdateFlags.Default)
Parameters
Starting index in the array.
Count of elements in array.
Sub-mesh index to set LODs for.
Mesh update flags. If set to DontValidateIndices, then index range validation is skipped.
Remarks
Note that each Mesh LOD range should be relative to the sub-mesh holding the LOD. See MeshLodRange for more information.
SetLods(MeshLodRange[], int, MeshUpdateFlags)
Sets the Mesh LOD ranges (index start and index count) for a given sub-mesh with an array.
public void SetLods(MeshLodRange[] levels, int submesh, MeshUpdateFlags flags = MeshUpdateFlags.Default)
Parameters
The sub-mesh index to set LODS for.
Mesh update flags. If set to DontValidateIndices, then index range validation is skipped.
Remarks
Note that each Mesh LOD range should be relative to the sub-mesh holding the LOD. See MeshLodRange for more information.
SetLods(MeshLodRange[], int, int, int, MeshUpdateFlags)
Sets the Mesh LOD ranges (index start and index count) for a given sub-mesh with an array.
public void SetLods(MeshLodRange[] levels, int start, int count, int submesh, MeshUpdateFlags flags = MeshUpdateFlags.Default)
Parameters
Starting index in the array.
Count of elements in array.
The sub-mesh index to set LODS for.
Mesh update flags. If set to DontValidateIndices, then index range validation is skipped.
Remarks
Note that each Mesh LOD range should be relative to the sub-mesh holding the LOD. See MeshLodRange for more information.
SetLods(NativeArray<MeshLodRange>, int, MeshUpdateFlags)
Set a LOD ranges for a given submesh with a NativeArray.
public void SetLods(NativeArray<MeshLodRange> levels, int submesh, MeshUpdateFlags flags = MeshUpdateFlags.Default)
Parameters
Sub-mesh index to set LODs for.
Mesh update flags. If set to DontValidateIndices, then index range validation is skipped.
Remarks
Note that each Mesh LOD range should be relative to the sub-mesh holding the LOD. See MeshLodRange for more information.
SetLods(NativeArray<MeshLodRange>, int, int, int, MeshUpdateFlags)
Set a LOD ranges for a given submesh with a NativeArray.
public void SetLods(NativeArray<MeshLodRange> levels, int start, int count, int submesh, MeshUpdateFlags flags = MeshUpdateFlags.Default)
Parameters
Starting index in the array.
Count of elements in array.
Sub-mesh index to set LODs for.
Mesh update flags. If set to DontValidateIndices, then index range validation is skipped.
Remarks
Note that each Mesh LOD range should be relative to the sub-mesh holding the LOD. See MeshLodRange for more information.