Change display of Vector2Field in editor
I'm using a script to set up an editor and I need to pre-calculate the height of the components. My problem is that the EditorGUI.Vector2Field makes the field values line wrap when I make the tab narrow.
I tried to determine the width when drawing, but the problem is that the editor, when preparing for draw the Vector2Field, sets the width = 1.
Is there a way to prevent a line break for a Vector2Field? Or you have to write your own Vector2Field from two FloatField?
Comment