Best way to position text on the side of a cube
Hey Guys,
Working on completing my first game in Unity (started once before, but gave up after a lot of render/clipping issues no one could explain); having a lot more success with this one :)
Here's the current setup:
What I want to do, is write a score text on the side of that gray brick on the top; it will hold dice up top and I want to display the current player + the combined value of the die there.
What's the best way to go about this?
Regards,
Nick.
Answer by NKCSS · Aug 31, 2015 at 08:03 PM
Found my own solution while watching [this youtube video][1]; just use GameObject -> 3d -> 3d text and position it manually for now.
The contents can be dynamically set using this in your scripts:
public GameObject GekozenStenenTextObject;
GekozenStenenTextObject.GetComponent<TextMesh>().text
All you need to do is link it to the script (or get a reference via code). [1]: https://www.youtube.com/watch?v=ITPyi3HsRcE
Your answer
![](https://koobas.hobune.stream/wayback/20220612002149im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to prepare your scene to build and run? 1 Answer
How do you make your player jump in the Roll-a-Ball tutorial series? 0 Answers
Character movement with click 1 Answer
all compilers have to be fixed befor entering game mode .. 3 Answers
Recognize when ever camera looks up and turns back down 0 Answers