기술 자료

Unity Engine

Unity Engine

SetTangents

Set the tangents of the Mesh.
읽는 시간 2분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

SetTangents(List<Vector4>)

Set the tangents of the Mesh.
public void SetTangents(List<Vector4> inTangents)

Parameters

inTangents

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

inTangents

Per-vertex tangents.

start

Index of the first element to take from the input array.

length

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 start index and being of a given length. The resulting Mesh has length amount of vertices.

SetTangents(Vector4[])

Set the tangents of the Mesh.
public void SetTangents(Vector4[] inTangents)

Parameters

inTangents

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

inTangents

Per-vertex tangents.

start

Index of the first element to take from the input array.

length

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 start index and being of a given length. The resulting Mesh has length amount of vertices.

SetTangents<T>(NativeArray<T>)

Set the tangents of the Mesh.
public void SetTangents<T>(NativeArray<T> inTangents) where T : struct

Parameters

inTangents

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

inTangents

Per-vertex tangents.

start

Index of the first element to take from the input array.

length

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 start index and being of a given length. The resulting Mesh has length amount of vertices.