Version: 2021.2
언어: 한국어

Mesh.ApplyAndDisposeWritableMeshData

매뉴얼로 전환
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);

파라미터

data The mesh data array, see MeshDataArray.
mesh The destination Mesh. Mesh data array must be of size 1.
meshes The destination Meshes. Must match the size of mesh data array.
flags The mesh data update flags, see MeshUpdateFlags.

설명

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.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961