Version: 2020.1
언어: 한국어
public void GenerateMeshAsync (XR.MeshId meshId, Mesh mesh, MeshCollider meshCollider, XR.MeshVertexAttributes attributes, Action<MeshGenerationResult> onMeshGenerationComplete);

파라미터

meshId The MeshId of the mesh you wish to generate.
mesh The Mesh to write the results into.
meshCollider (Optional) The MeshCollider to populate with physics data. This may be null.
attributes The vertex attributes you'd like to use.
onMeshGenerationComplete The delegate to invoke when the generation completes.

설명

Requests the generation of the Mesh with MeshId meshId. Unity calls onMeshGenerationComplete when generation finishes.

Use this method to request that a mesh is asynchronously generated. "Generation" includes extracting the mesh data from the subsystem's mesh provider (e.g., an AR device) and baking the MeshCollider (if meshCollider is not null).

This happens in a background thread. For large meshes, this can take several frames to complete. onMeshGenerationComplete is invoked when the generation completes.

See Also: TryGetMeshInfos