firstVertex
First vertex in the index buffer for this sub-mesh.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public int firstVertex { readonly get; set; }
Remarks
Together with SubMeshDescriptor.vertexCount, this defines the range of vertices that are possibly used by this sub-mesh. These values are important for any CPU-based mesh processing that would be done, for example dynamic batching or CPU skinning.
The SubMeshDescriptor.bounds, SubMeshDescriptor.firstVertex and SubMeshDescriptor.vertexCount values are calculated automatically by Mesh.SetSubMesh, unless MeshUpdateFlags.DontRecalculateBounds flag is passed.
Additional Resources: SubMeshDescriptor.vertexCount.