Hello everyone.
Simple question: is there a way that I can keep a gui from moving? I’d like to use a gui as a dialogue box and I want the text to stay above the character that is speaking.
How might I go about doing this?
Thanks!
Best,
Vishal
Hello everyone.
Simple question: is there a way that I can keep a gui from moving? I’d like to use a gui as a dialogue box and I want the text to stay above the character that is speaking.
How might I go about doing this?
Thanks!
Best,
Vishal
What do you mean by this? The GUI is rendered in screen space and should not move at all.
GUI don’t move, characters do.
I should have specified. I meant if there was any way the GUI could maintain its position in the world. ie, a character can walk away from the GUI itself.
Sounds like what you want is a label! It’s a great solution for displaying text using game world coordinates. You can, for example, attach the label as a child to the character that is speaking. The label will move with the character.
As for the textbox itself, you should again use an object in the game world instead of on a GUI.
Thanks! I had been using a label but realized that I wanted it to be clickable. I wanted to be able to click on the character and have the text change. I realized that gameobjects take input from clicks anywhere rather than just within their bounds, thus why I was curious if a gui could serve this purpose.
Thanks again for your help!
Best,
Vishal