Applying a difrent colour text to a OnGUI() Toggle

Hey there!

I have a menu for my game with a black backdrop and a OnGUI() toggle (Yes I know old and what not but I would like to use it for my menu) the toggle in question has white text I was wondering how I would change the colour of it ive tried google but not found any relevant answers.

Thank you in advance! :3

-Jake

I guess GUI.Color works but kinda cluncky to change Unity - Scripting API: GUI.color

That is literally the entirety of the OnGUI system. (Except that it doesn’t always work.) If you’re dead-set on using OnGUI, you’re going to have to embrace the clunkiness.

1 Like

:smile: Ok then @StarManta