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(); } }
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), selectedBone.position, selectedBone.rotation.eulerAngles.z, selectedBone.bindPoseColor); bool isReadOnly = skinningCache.character != null && skinningCache.character.boneReadOnly; m_SkeletonToolView.Show(selectedBone, isReadOnly); } }