Question by
Vishaal · May 05, 2016 at 05:44 AM ·
scripting problemuser interface
How do I make GUI to appear on a game object instead of rendering it on screen?
I am making a health bar, and I want it to appear on a device in game. How do I map the GUI to a particular game object?
Comment
Best Answer
Answer by Jason2014 · May 05, 2016 at 06:49 AM
Use new UI system instead of programming GUI. Create new Canvas as a child of object with "World Space" render mode selected and attach health bar image to this.
Your answer
![](https://koobas.hobune.stream/wayback/20220612080209im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to change childAlignment option/value on GridLayoutGroup component with script ? 1 Answer
how do i take whats on one UI canvas and make it apear on another in real time(for a card game) 0 Answers
How to make a button control Animator animation 0 Answers
How to activate UI element on mouse over? 1 Answer
How to keep program linear and synchronous while getting user input? 1 Answer