As an exercise I tried converting one of my custom inspectors to use UIElements.
In my original code I have a TextArea that uses a string field local to the inspector class.
string json;
public override void OnInspectorGUI()
{
json = GUILayout.TextArea(json);
if (GUILayout.Button("Do something"))
{
// do something with json string
}
}
I had to use IMGUIContainer for this bit as I just don’t know how to get the TextArea working with UIElements. I tried using a TextField but when I click in it it just goes blank. Do I need to somehow bind it to the string field?