Mesh.ApplyAndDisposeWritableMeshData

Cambiar al Manual
public static void ApplyAndDisposeWritableMeshData (Mesh.MeshDataArray data, Mesh mesh, Rendering.MeshUpdateFlags flags);
public static void ApplyAndDisposeWritableMeshData (Mesh.MeshDataArray data, Mesh[] meshes, Rendering.MeshUpdateFlags flags);
public static void ApplyAndDisposeWritableMeshData (Mesh.MeshDataArray data, List<Mesh> meshes, Rendering.MeshUpdateFlags flags);

Parámetros

dataThe mesh data array, see MeshDataArray.
meshThe destination Mesh. Mesh data array must be of size 1.
meshesThe destination Meshes. Must match the size of mesh data array.
flagsThe mesh data update flags, see MeshUpdateFlags.

Descripción

Applies data defined in MeshData structs to Mesh objects.

ApplyAndDisposeWritableMeshData takes a MeshDataArray containing writeable MeshData structs, and applies the vertex buffer, index buffer, and sub-mesh data to Mesh objects. Use this to create new Meshes using the C# Job System and Burst.

After ApplyAndDisposeWritableMeshData is called, the MeshDataArray struct is disposed and can no longer be used.

See Also: AllocateWritableMeshData, MeshDataArray, MeshData.