RuntimeUnityEditor icon indicating copy to clipboard operation
RuntimeUnityEditor copied to clipboard

Obsolite debug feature causing an error?

Open wijo2 opened this issue 1 year ago • 1 comments

I didn't want to just pr this since it could be legitimately useful and I'm too bad at GUI to solve it without just removing it, but from what I can tell line 454 in Inspector.cs: GUILayout.TextArea(ex.Message, GUI.skin.label, GUILayout.ExpandWidth(true)); Is causing this error: (picture seems more practical) image When trying to scroll down past the limit when searching in the inspector. This seems like a debug tool that clearly doesn't work so if it's not needed anymore and the fix is to just remove the line it should be pretty quick. Honestly don't know if this matters in the slightest but I've been using this tool for a while and felt curious so now you know too I guess.

wijo2 avatar Dec 05 '23 23:12 wijo2

I assume you mean this https://github.com/ManlyMarco/RuntimeUnityEditor/blob/9771eb7948a78c6e72aaefe3f842449588c645f7/RuntimeUnityEditor/Windows/Inspector/Inspector.cs#L454

It should only trigger when there's an exception somewhere in the field drawing code to provide at least some sort of output, so the field drawing code should be fixed instead.

ManlyMarco avatar Dec 06 '23 07:12 ManlyMarco