I have 2 issues this morning that I'm not sure how to get around. I've done google searching, and even the chat bot isn't much help in solving these. I'm hoping someone can give me a boost in the right direction here.
My first issue is surrounding UI, of which I am NOT very good at. I have a text field where I want to allow the user to enter an integer value, yet the field itself is quite...shrunken. A screen shot of this is attached. You can see the text field is quite small upon initial opening, and a google search told me to use EditorGUILayout to get around this...but EditorGUILayout isn't available even with the using UnityEditor statement.
I tried to follow what @abstract flower did in the Maneuver Node Controller mod, with my code looking thusly (with those pieces not applicable to this having been removed):
protected string strDistanceToTarget = "";
protected string strMessage = "";
protected string strRendezvousMessage = "";
protected override void FillWindow(int windowID)
{
base.Update();
base.FillWindow(windowID);
styRendezvousDistance = new GUIStyle(GUI.skin.GetStyle("Label"));
styRendezvousDistance.normal.textColor = Color.white;
GUILayout.BeginHorizontal();
GUILayout.Label(">> Approximate final distance to target (meters)", GUILayout.Width(500));
strDistanceToTarget = GUILayout.TextField(strDistanceToTarget, styRendezvousDistance);
GUILayout.EndHorizontal();
}```
Even with this code, the text field still comes out like that. Now, I can click in it and start typing, and it gets bigger. And then stays that way even when clicking out of the window. Which is odd because I can continue entering characters in that field, and it continues to widen and widen and widen without end.
