MeshLodRange

struct in UnityEngine

/

Implemented in:UnityEngine.CoreModule

Description

Index range (start index and index count) describing a single Mesh LOD within a Mesh.

The index range is relative to the sub-mesh holding the LOD. Add SubMeshDescriptor.indexStart to this range to calculate the absolute position of the LOD within the whole index buffer.

Additional resources: Mesh.SetLod, Mesh.SetLods.

Properties

indexCountThis property, together with indexStart, determines which part of the whole index buffer is used by a particular Mesh LOD. This should be a positive number or zero.Additional resources: indexStart, Mesh.SetLod, Mesh.SetLods.
indexStartThis property, together with indexCount, determines which part of the whole index buffer is used by a particular Mesh LOD. The index start is relative to the sub-mesh holding the LOD. This should be a positive number or zero.Additional resources: indexCount, Mesh.SetLod, Mesh.SetLods.

Constructors

MeshLodRangeCreate a MeshLodRange.

Did you find this page useful? Please give it a rating: