void DrawBoneControl(BonesControl target, KneadType type) { EditorGUILayout.Space(); using (var scope1 = new EditorGUI.ChangeCheckScope()) { foldout[(int)type] = EditorGUILayout.Foldout(foldout[(int)type], BonesControl.GetLabel(type)); if (foldout[(int)type]) { target.UnlockTransformElement(type); using (var scope = new EditorGUILayout.HorizontalScope()) { string minValue = target.GetBonesValue(BonesControl.StoreType.StoreMinValue, type).ToString(); if (GUILayout.Button(minValue)) { target.SaveBonesValue(BonesControl.StoreType.StoreMinValue, type); MakeSceneDirty(); } using (var ccs = new EditorGUI.ChangeCheckScope()) { target.progress[(int)type] = EditorGUILayout.Slider(target.progress[(int)type], -1, 1); if (ccs.changed) { target.UpdateProgress(type); } } minValue = target.GetBonesValue(BonesControl.StoreType.StoreMaxValue, type).ToString(); if (GUILayout.Button(minValue)) { target.SaveBonesValue(BonesControl.StoreType.StoreMaxValue, type); MakeSceneDirty(); } } } GUILayout.Space(2); if (scope1.changed) { MakeSceneDirty(); } } }