And just copying/pasting that code chunk into a new project works fine for me, no errors at all. Perhaps it’s some other code causing the error instead?
Edit: and I moved this thread to the UnityGUI section as it’s GUI related.
Thanks for checking the code. A new project with the code copied/pasted generates the error for me. The error does seem relatively harmless. I’ve submitted a bug report with the project.
No worries on the forum choice, it’s not a big deal.
As far as your code generating errors for you, that’s odd indeed. Thanks for submitting it as a bug, we’ll see if our dev/qa folks have anything to share.