- Home /
How do I change my health bar to be text only
I want my health bar status to be in a text number . I have some code here : public enum Positioning { Left, Right, }
to
public enum Positioning {
TopLeft,
TopRight,
BottomLeft,
BottomRight
}
What you've posted doesn't make any sense. Can you elaborate a little more? All I see here is an enum, which has nothing to do with a health bar.
Answer by TBruce · Aug 08, 2016 at 08:20 PM
As @Addyarb mentioned, your post does not make any sense.
The title of your question is How do I change my health bar to be text only which has nothing to do with positioning.
As I am already aware of your code from previous questions you will need to add something like TextOnly to your Theme enum, like this
public enum Theme {
Bar1,
Bar2,
Bar3,
Medieval,
Horror,
Medieval2,
Scifi,
Heart,
Cyber,
Fantasy,
TextOnly
}
Next you will need to modify the rest of your code to handle this new enum value to display it correctly.
Answer by Endersky1 · Aug 08, 2016 at 02:49 AM
Just make an integer to represent your health and follow this tutorial https://www.youtube.com/watch?v=m3S-X-ZESu0
Your answer
![](https://koobas.hobune.stream/wayback/20220612090340im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How do I get Text Mesh to appear in the scene ten seconds later and disappear 2 Answers
how do i make a model solid? 1 Answer
About Flare Effect - HELP - how to use 1 Answer
How do I pause and unpause multi gameobjects in the scene for a five seconds 1 Answer
Textfield in javascript, make unity read it on pressing enter 1 Answer