Exemplo n.º 1
0
 void BoneDataChanged(BoneCache bone)
 {
     if (m_SkeletonToolView.target == bone)
     {
         m_SkeletonToolView.Update(bone.name, Mathf.RoundToInt(bone.depth), bone.position, bone.rotation.eulerAngles.z, bone.bindPoseColor);
     }
 }
Exemplo n.º 2
0
 void BoneDataChanged(BoneCache bone)
 {
     if (m_SkeletonToolView.target == bone)
     {
         m_SkeletonToolView.Update(bone.name, Mathf.RoundToInt(bone.depth));
     }
 }
Exemplo n.º 3
0
        private void UpdateBoneInspector()
        {
            var selectedBone   = skinningCache.skeletonSelection.activeElement;
            var selectionCount = skinningCache.skeletonSelection.Count;

            m_SkeletonToolView.Hide();

            if (enableBoneInspector && selectedBone != null && selectionCount == 1)
            {
                m_SkeletonToolView.Update(selectedBone.name, Mathf.RoundToInt(selectedBone.depth));
                m_SkeletonToolView.Show();
            }
        }