文档

Unity Engine

Unity Engine

GetBindposes

Gets the bind poses of the Mesh.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

GetBindposes()

Gets the bind poses of the Mesh.
public NativeArray<Matrix4x4> GetBindposes()

Returns

Type

Description

NativeArray<Matrix4x4>The array of bind poses belonging to the Mesh.

Remarks

The bind pose at each index corresponds to the bone with the same index. Additional Resources: SkinnedMeshRenderer.bones.

GetBindposes(List<Matrix4x4>)

Gets the bind poses of the Mesh.
public void GetBindposes(List<Matrix4x4> bindposes)

Parameters

A list of bind poses to populate.

Remarks

The bind pose at each index corresponds to the bone with the same index. Additional Resources: SkinnedMeshRenderer.bones.
Use this method instead of Mesh.bindposes if you control the life cycle of the list passed in and you want to avoid allocating a new array with every access.