- Home /
UI Text problem
Hi, I am a beginner with unity 5.6 and while programming a 3D game, I found that my UI text was appearing in empty space rather than on my plane, like I wanted it to. I tried deleting the canvas, text, and event system and redid my game completely on a different project, but nothing has worked for me so far. Has anybody experienced this issue, and/or know how it can be fixed?
Answer by Shrikky23 · Jul 04, 2017 at 02:49 PM
Go to Canvas:
Select Render Mode, Choose Screen Space and make sure to choose the Display target 1 (If you have more monitors and have more cameras, you can mess with other display targets)
Once you set the render mode, add a panel to canvas, you should immediately see a white overlay as panel by default works like that. You can change the color/alpha to remove the white overlay
Now you can add text UI, make sure you anchor mode. Learn about anchors, what it basically does is stick the child UI position with respect to its parent UI position.
Thanks for the help. I was able to resolve this issue using the panel.
If my answer helped you solve it, do mark my reply as the answer since it will help other people and motivate people like me to answer more questions :) thanks.