ドキュメント

Unity Engine

Unity Engine

GetLods

Gets an array containing the Mesh LOD ranges (index start and index count) for a given Mesh LOD.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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

submesh

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


submesh

Sub-mesh to get LODs from.

Remarks

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