When making a field with a custom editor, is there any way to change the order of variables in the inspector while still using base.ObInspectorGUI()
My code (inside an editor script)
public override void OnInspectorGUI() {
base.OnInspectorGUI();
MyScript myScript = target as MyScript;
if (myScript.someBool) {
myScript.intVariable = EditorGUILayout.IntField("Int Variable", myScript.intVariable);
}
}
However the IntField is at the bottom of the public variables from the original MyScirpt. while I would like the IntField to be below the SomeBool.
Thanks!