[Solved] Multiple text on a single GameObject
Hey everyone,
I'm new to Unity, and I'm wondering if it's possible to attach multiple texts on a GameObject, especially in 3D space. What I'm trying to achieve is as the image follows, a single GameObject with multiple texts floating around it and rotate/move along with the dog.
I tried adding text component to the GameObject, but it doesn't let me add multiple texts. Any help would be appreciated!
Edit: [Solved] Thanks to Hellium, the solution is in the comments section
Why do you want to add multiple Texts
to a single GameObject? I believe that having multiple GameObjects with a single Text
component will be better. You will have more control on the position of the floating labels.
Cause I'm dealing with 200+ 3D bones and thought that it'd be easier if I could store information based on each GameObject, so each bone could have their info attached to that specific bone, that floats around the single bone. Now that I think about what you said again, is it actually better to have multiple children GameObjects for each bone and have info attached to said children?
I don't know if it would be "better", but I believe it will be easier to place the various labels around the object ins$$anonymous$$d of having a single Text with all your labels. You will have to deal with space characters to make sure the label does not go over your object, I guess it's feasible but a little bit more complicated.
Take a look at this question, it may help
Your answer
Follow this Question
Related Questions
Issues with OnMouseOver() not working 2 Answers
instantiated UI Text prefab ignores provided position and uses prefab's original position 0 Answers
UI Text alignment mobile vs editor are not equal. 0 Answers
How can I check if there is no free space in the Text component? 1 Answer
Canvas Text Help 0 Answers