GetLods
Gets an array containing the Mesh LOD ranges (index start and index count) for a given Mesh LOD.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
GetLods(int)
Gets an array containing the Mesh LOD ranges (index start and index count) for a given Mesh LOD.
public MeshLodRange[] GetLods(int submesh)
Parameters
Returns
Type | Description |
|---|---|
| MeshLodRange[] | Index ranges for all LODs in this sub-mesh. |
Remarks
Note that the Mesh LOD range is relative to the sub-mesh holding the LOD. See MeshLodRange for more information.
GetLods(List<MeshLodRange>, int)
Gets all index ranges for a given sub-mesh.
public void GetLods(List<MeshLodRange> levels, int submesh)
Parameters
Remarks
Note that the Mesh LOD range is relative to the sub-mesh holding the LOD. See MeshLodRange for more information.