Shared bone mapping registry for a Spine skeleton. Maintains a unified mapping of bone indices to IDs across all VBCreators of a SpineTemplet.

Spine骨架的共享骨骼映射注册表。 在一个SpineTemplet的所有VBCreator之间维护统一的骨骼索引到ID的映射。

构造函数

访问器

  • get boneIdIndexPairs(): number[]
  • 返回 number[]

    Array of bone ID-index pairs.

    Get the flattened array of bone ID and index pairs. Format: [boneId0, boneIndex0, boneId1, boneIndex1, ...]

    获取扁平化的骨骼ID和索引对数组。 格式:[骨骼ID0, 骨骼索引0, 骨骼ID1, 骨骼索引1, ...]

方法

  • 参数

    • boneIndex: number

      The bone index to look up.

    返回 number

    The bone ID if registered, undefined otherwise.

    Get the bone ID for a registered bone index.

    获取已注册骨骼索引的骨骼ID。

  • 参数

    • boneIndex: number

      The bone index from spine skeleton.

    返回 number

    The assigned bone ID.

    Get or register a bone ID for the given bone index. If the bone index hasn't been registered, assigns a new ID.

    获取或注册给定骨骼索引的骨骼ID。 如果骨骼索引尚未注册,则分配一个新的ID。