- Home /
Display text on each side of cube
Hello, I want to display some text on each face of cube. But the problem is i cant use GuiText for it. As it uses the screen positioning while my cube is using the 3d positioning of the game environment. I tried to do it with 3D gui text GameObject, but im facing two problems: 1. How to position 3D gui text on each side of cube. 2. How can i manage the 3d text to be viewed only from front side. I am facing these problems, any other solution will be appreciated. P.S i am generating cubes dynamically and the text will also be generated dynamically for each cube. In short each cube will be represented with different text on each side.
Just make a prefab with cube and 6 3d texts on each side. Then you can instantiate this prefab and modify each clone of the prefab.
For the second question (when you look at the right side of the cube, can also see through it to the left text, backwards) search "unity 3dtext see through."
Your answer
Follow this Question
Related Questions
GUI window gets drawn behind other gui elements. 2 Answers
Appear after set number of seconds 2 Answers
Fix Blurry UI text? 10 Answers
Set name for game 0 Answers