public Vector3 Slider(Vector3 previous, Attribute.SliderAttribute attr) { PushStackOrientation(Attribute.StackAttribute.Orientation.Vertical, GUI.skin.box); var x = EditorGUILayout.Slider(label: attr.label + "(X)", value: previous.x, leftValue: attr.min, rightValue: attr.max); var y = EditorGUILayout.Slider(label: attr.label + "(Y)", value: previous.y, leftValue: attr.min, rightValue: attr.max); var z = EditorGUILayout.Slider(label: attr.label + "(Z)", value: previous.z, leftValue: attr.min, rightValue: attr.max); PopStackOrientation(); return(new Vector3(x, y, z)); }
//! //! @brief スライダー //! public float Slider(float previous, Attribute.SliderAttribute attr) { return(EditorGUILayout.Slider(label: attr.label, value: previous, leftValue: attr.min, rightValue: attr.max)); }