I’m trying to render my first Text using pure C#. I get nothing on screen. Do I have to set a font before rendering? I read that the default is Arial. While my game is running inspector shows under font: “None (Font)”. Does it mean that it’s set to default?
I’m using Canvas in Overlay mode. Do Texts require a fullscreen camera? I don’t have one at the moment.
Would you mind going into a bit more detail as to how you’ve set this up? Do you have a text element on your canvas that you populate through script, or are you creating the whole thing through script?
As to your other questions, you don’t need to set the font, it defaults to Arial when there’s nothing there. If you could post some of your code that would help as well.
I solved it. Apparently default Arial is ONLY when created trough inspector. When creating text from script its necessary to set font manually. I also forgot to attach my text object to a canvas. All of this happens automatically in the editor.