Version: 2020.2
LanguageEnglish
  • C#

MeshGenerationResult.Attributes

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public XR.MeshVertexAttributes Attributes;

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