fix: add absolute mode toggle to overlay window
parent
f9901a0255
commit
48d1994f5f
|
@ -432,12 +432,13 @@ namespace Coffee.UIExtensions
|
||||||
if (s_SerializedObject.targetObjects.Any(x => !x)) return;
|
if (s_SerializedObject.targetObjects.Any(x => !x)) return;
|
||||||
|
|
||||||
s_SerializedObject.Update();
|
s_SerializedObject.Update();
|
||||||
GUILayout.BeginHorizontal(GUILayout.Width(220f));
|
GUILayout.BeginVertical(GUILayout.Width(220f));
|
||||||
var labelWidth = EditorGUIUtility.labelWidth;
|
var labelWidth = EditorGUIUtility.labelWidth;
|
||||||
EditorGUIUtility.labelWidth = 60;
|
EditorGUIUtility.labelWidth = 100;
|
||||||
_xyzMode = DrawFloatOrVector3Field(s_SerializedObject.FindProperty("m_Scale3D"), _xyzMode);
|
_xyzMode = DrawFloatOrVector3Field(s_SerializedObject.FindProperty("m_Scale3D"), _xyzMode);
|
||||||
|
EditorGUILayout.PropertyField(s_SerializedObject.FindProperty("m_AbsoluteMode"));
|
||||||
EditorGUIUtility.labelWidth = labelWidth;
|
EditorGUIUtility.labelWidth = labelWidth;
|
||||||
GUILayout.EndHorizontal();
|
GUILayout.EndVertical();
|
||||||
s_SerializedObject.ApplyModifiedProperties();
|
s_SerializedObject.ApplyModifiedProperties();
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
|
Loading…
Reference in New Issue