In Unity3D, what would “setting” the bounds of a mesh do or achieve?
问题 In a Unity code base, I saw this: // the game object currently has no mesh attached MeshFilter mFilter = gameObject.AddComponent<MeshFilter>(); gameObject.AddComponent<MeshRenderer>(); // no problem so far mFilter.mesh = MakeASmallQuadMesh(0.1f); // great stuff mFilter.mesh.bounds = SomeSpecificBounds(); // what ? The function "MakeASmallQuadMesh" has the usual completely normal code for making a mesh, so Mesh mesh = new Mesh(); mesh.SetVertices(verts); mesh.SetIndices(indices); mesh.SetUVs(0