Build a built-in primitive mesh from a non-glTF MeshRef. Pass retain to keep the CPU vertex/index arrays on the mesh (e.g. so the editor can gather triangles for a navmesh bake); off by default to save memory.
retain
Build a built-in primitive mesh from a non-glTF MeshRef. Pass
retainto keep the CPU vertex/index arrays on the mesh (e.g. so the editor can gather triangles for a navmesh bake); off by default to save memory.