Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetLod(int, int)

Gets a Mesh LOD range (index start and index count) for a given Mesh LOD.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public MeshLodRange GetLod(int subMeshIndex, int levelIndex)

Parameters

subMeshIndex

Sub-mesh index to get LOD from.

levelIndex

Level of detail to get range for.

Returns

Type

Description

MeshLodRangeIndex range for the requested level of detail.

Remarks

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