public static float Axis(Rect pos, SerializedProperty prop, string label) { GUIEditorUtils.LookLikeControls(20); EditorGUI.BeginChangeCheck(); float result = EditorGUI.FloatField(pos, label, prop.floatValue); if (EditorGUI.EndChangeCheck() == true) { prop.floatValue = result; } GUIEditorUtils.LookLikeInspector(); return(result); }
private static void TransformDisplay(int Index, ref Transform T) { GUIEditorUtils.LookLikeInspector(); T = (Transform)EditorGUILayout.ObjectField("Part #" + Index, T, typeof(Transform), true); GUIEditorUtils.LookLikeControls(); }