Version: 2019.2
Experimental: this API is experimental and might be changed or removed in the future.

MeshGenerationResult.Attributes

Switch to Manual

Description

The MeshVertexAttributes that were written to the MeshGenerationResult.Mesh.

The vertex attributes will be the intersection of those requested by the caller of XRMeshSubsystem.GenerateMeshAsync and what the subsystem's mesh provider is able to supply. For example, if you request vertex tangents, but the mesh provider cannot supply them, then MeshGenerationResult.Attributes will not include tangents.

See Also: XRMeshSubsystem.GenerateMeshAsync