SetTangents
Set the tangents of the Mesh.
Read time 2 minutesLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
SetTangents(List<Vector4>)
Set the tangents of the Mesh.
public void SetTangents(List<Vector4> inTangents)
Parameters
Per-vertex tangents.
Remarks
Additional Resources: Mesh.tangents property.
SetTangents(List<Vector4>, int, int, MeshUpdateFlags)
Sets the tangents of the Mesh, using a part of the input array.
public void SetTangents(List<Vector4> inTangents, int start, int length, MeshUpdateFlags flags)
Parameters
Per-vertex tangents.
Index of the first element to take from the input array.
Number of elements to take from the input array.
Flags controlling the function behavior, see MeshUpdateFlags.
Remarks
This method behaves as if you called SetTangents with an array that is a slice of the whole array, starting at index and being of a given . The resulting Mesh has amount of vertices.
startlengthlengthSetTangents(Vector4[])
Set the tangents of the Mesh.
public void SetTangents(Vector4[] inTangents)
Parameters
Per-vertex tangents.
Remarks
Additional Resources: Mesh.tangents property.
SetTangents(Vector4[], int, int, MeshUpdateFlags)
Sets the tangents of the Mesh, using a part of the input array.
public void SetTangents(Vector4[] inTangents, int start, int length, MeshUpdateFlags flags)
Parameters
Per-vertex tangents.
Index of the first element to take from the input array.
Number of elements to take from the input array.
Flags controlling the function behavior, see MeshUpdateFlags.
Remarks
This method behaves as if you called SetTangents with an array that is a slice of the whole array, starting at index and being of a given . The resulting Mesh has amount of vertices.
startlengthlengthSetTangents<T>(NativeArray<T>)
Set the tangents of the Mesh.
public void SetTangents<T>(NativeArray<T> inTangents) where T : struct
Parameters
Per-vertex tangents.
Remarks
Additional Resources: Mesh.tangents property.
SetTangents<T>(NativeArray<T>, int, int, MeshUpdateFlags)
Sets the tangents of the Mesh, using a part of the input array.
public void SetTangents<T>(NativeArray<T> inTangents, int start, int length, MeshUpdateFlags flags) where T : struct
Parameters
Per-vertex tangents.
Index of the first element to take from the input array.
Number of elements to take from the input array.
Flags controlling the function behavior, see MeshUpdateFlags.
Remarks
This method behaves as if you called SetTangents with an array that is a slice of the whole array, starting at index and being of a given . The resulting Mesh has amount of vertices.
startlengthlength