How to get GUI text to appear on screen in 2d?

Hello :slight_smile: i asked this question in the 2d forums (and now i think that might have been the wrong place to do so).

To make this easier to understand;


My game is 2d side scroller (first game i’ve attempted).

I have a character which can move left and right as well as jump(all animated) and the camera will follow the character with a script i basically copied from somebody else in the forums (I believe it’s a smooth camera, with damp time etc…).


Now my problem is getting a GUI text to display my score (top left preferable). I have tried looking online for tutorials but they’re all old and use unity 3d mode as opposed to the new 2d mode. I’ve tried almost everything but nothing seems to work :frowning:

Any help is appreciated :slight_smile:
Thanks in advance.

Either put the GUIText onto an empty game object and position it at (0.5, 0.5, 0.0) as per the GUIText documentation or create a Canvas on the empty game object, set it as Screen Space Overlay and add a game object as a child and add a Text component on it. As per the UI documentation.

If this doesn’t work, explain more about your set-up.