Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SkeletonBone

Details of the Transform name mapped to the skeleton bone of a model and its default position and rotation in the T-pose.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Struct
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public struct SkeletonBone

Remarks

The skeleton models used in Unity have multiple bones. The SkeletonBone struct has properties that are used to describe the position, rotation and scale of each bone. The bones are not shown. A OnDrawGizmosSelected tool can be created to view the skeleton. An array of SkeletonBone positions can be used to make a line model using Gizmos.DrawLine.
An array of SkeletonBones are used in _skeleton.

Fields

Value

Description

nameThe name of the Transform mapped to the bone.
positionThe T-pose position of the bone in local space.
rotationThe T-pose rotation of the bone in local space.
scaleThe T-pose scaling of the bone in local space.