Version: 2022.3
언어: 한국어

Mesh.MeshData.SetIndexBufferParams

매뉴얼로 전환
public void SetIndexBufferParams (int indexCount, Rendering.IndexFormat format);

파라미터

indexCount The size of the index buffer.
format The format of the indices.

설명

Sets the index buffer size and format of the Mesh that Unity creates from the MeshData.

Use this method to set the index buffer size and format for the Mesh that Unity creates from the MeshData struct. For details, see Mesh.SetIndexBufferParams.

After you have set the index buffer parameters, you can write the indices into the array returned by Mesh.MeshData.GetIndexData. If you call this method on a read-only MeshData, Unity throws an exception.

See Also: Mesh.AllocateWritableMeshData, Mesh.AcquireReadOnlyMeshData.