Example #1
0
        private void ChestConfigurationInspector(ref HipsTarget.TargetedChestBone chest)
        {
            chest.bone.transform = (Transform)EditorGUILayout.ObjectField("Chest", chest.bone.transform, typeof(Transform), true);
            if (chest.bone.transform != null)
            {
                EditorGUI.indentLevel++;

                EditorGUILayout.BeginHorizontal();
                chest.bone.maxAngle = EditorGUILayout.Slider("Max Angle", chest.bone.maxAngle, 0, 180);
                if (GUILayout.Button("R", GUILayout.Width(20)))
                {
                    chest.bone.maxAngle = HipsTarget.maxChestAngle;
                }
                EditorGUILayout.EndHorizontal();

                EditorGUI.indentLevel--;
            }
        }
Example #2
0
 private void UpdateChestBones(HipsTarget.TargetedChestBone chest)
 {
 }
Example #3
0
 private void InitChestConfiguration(HipsTarget.TargetedChestBone upperLeg)
 {
 }