GetTangents(NativeArray<Vector4>)
Populates an array with the vertex tangents from the MeshData.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public void GetTangents(NativeArray<Vector4> outTangents)
Parameters
The destination vertex tangents array.
Remarks
The destination array must have at least vertexCount elements. The tangent at each index corresponds to the vertex with the same index. Vertex tangent data will be converted into Vector4 format if needed. Additional Resources: Mesh.GetTangents, HasVertexAttribute, Mesh.AcquireReadOnlyMeshData.