Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

SubMeshDescriptor.bounds

public Bounds bounds;

Description

Bounding box of vertices in local space.

The bounds, firstVertex and vertexCount values are calculated automatically by Mesh.SetSubMesh, unless MeshUpdateFlags.DontRecalculateBounds flag is passed.

Additional resources: Mesh.SetSubMesh, Mesh.GetSubMesh.