GUI Box doesn't work
Hey,
I got piece of code:
public class BoostMaister : MonoBehaviour {
void OnGui()
{
GUI.Box(new Rect(0, 0, Screen.width, Screen.height), "Olof");
}
}
Then I added that script to the "Main camera" component, but the GUI doesn't come on the screen. What the hell???
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612054543im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to assign GameObject to Script? 1 Answer
FSM on duplicates of same object 1 Answer
How to assign Instantiated object through script? 1 Answer
Asteroid not moving and not destroying 0 Answers