文档

Unity Engine

Unity Engine

GetLod(int, int)

Gets a Mesh LOD range (index start and index count) for a given Mesh LOD.
阅读时间1 分钟最后更新于 1 个月前

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.