Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obsolite debug feature causing an error? #58

Open
wijo2 opened this issue Dec 5, 2023 · 1 comment
Open

Obsolite debug feature causing an error? #58

wijo2 opened this issue Dec 5, 2023 · 1 comment

Comments

@wijo2
Copy link

wijo2 commented Dec 5, 2023

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.

@ManlyMarco
Copy link
Owner

I assume you mean this

GUILayout.TextArea(ex.Message, GUI.skin.label, GUILayout.ExpandWidth(true));

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants