Search Issue Tracker

By Design

Votes

0

Found in

3.3.0f4

Issue ID

398753

Regression

No

useGUILayout = false spams console

IMGUI

-

useGUILayout = false spams console.

If a project uses GUILayout with MonoBehaviour.useGUILayout set to false, the console is spammed with the following error:
ArgumentException: Getting control 1's position in a group with only 1 controls when doing Repaint
Aborting

Repro:
Play the scene in the attached project, and toggle GUI control.

Result:
ArgumentException: Getting control... is thrown in every OnGUI call.

Expected:
Graceful and explanatory error message.
E.g. "Control [control_id] on [object] can't be drawn because useGUILayout is disabled"

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.