- Home /
Text very big for one frame
I have a canvas with a text. The text is size 32.
The canvas is instantated in the game as a prefab. It is then told to look for my UI camera and assign it as the world camera.
I tried executing the canvas script first. Will assigning the camera to the canvas below the instantiate command help?
I tried taking away a component before runtime on the text to make it break at the exact moment the text is huge. It was successful. I got a nullreferenceexception, just what I wanted. I then took a look at the text and it said it was size 32. I changed it and it sized down, but when I click on the game window is resizes back up again.
You sure that you don't have a script that sets the font size to a locked variable, when you get into play mode?
@Hexer I noticed when using smaller numbers, it doesnt get as big?