unity-json-editor icon indicating copy to clipboard operation
unity-json-editor copied to clipboard

Not working in recent Unity

Open kjyv opened this issue 4 years ago • 1 comments

This seems kinda nice but doesn't show any fields or buttons for properties in Unity 2019.3.15. Only the "External Objects" field is there and "Edit Text" button appears (clicking it doesn't change anything). I've tried looking at it and it parses the file, recursively goes through it and also calls GUI.Button here and there. Changing a few of those to GUILayout shows buttons but with a wrong layout of course. Did the way GUI.Button etc. work change in the mean time, or rather the way rects have to be calculated?

kjyv avatar Jun 05 '20 09:06 kjyv

you should call before draw any property

EditorGUILayout.GetControlRect();

dashanddot avatar Nov 11 '22 15:11 dashanddot