pub struct SkeletonBone {
pub m_Name: String,
pub m_Position: Vector3f,
pub m_Rotation: Quaternionf,
pub m_Scale: Vector3f,
pub m_ParentName: Option<String>,
pub m_TransformModified: Option<bool>,
}
Expand description
SkeletonBone is a sub class of the Unity engine since version 4.0.0. Exert from Unity’s scripting documentation: Details of the Transform name mapped to the skeleton bone of a model and its default position and rotation in the T-pose. 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 MonoBehaviour.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 HumanDescription.skeleton.
Fields§
§m_Name: String
The name of the Transform mapped to the bone.
m_Position: Vector3f
The T-pose position of the bone in local space.
m_Rotation: Quaternionf
The T-pose rotation of the bone in local space.
m_Scale: Vector3f
The T-pose scaling of the bone in local space.
m_ParentName: Option<String>
String: (5.5.0f3 - 2022.3.2f1)
m_TransformModified: Option<bool>
bool: (4.0.0 - 5.4.6f3)