- Home /
General question/advice for displaying multiple variables on a gameobject
Hello, I need some advice on displaying (multiple) text on a gameobject (which is a playing card in my scene but has RPG elements/stats). I'm completely new to GUI stuff and a little worried about the processing overhead so thought I'd ask the best way to accomplish displaying multiple variables onto the cards. (This will be displayed on 4 cards at all times, the main "fighter", "rogue", etc, as well as whatever encounter is instantiated (but then destroyed and move on to the next one), so hopefully no more than 5 playing cards with this constant update) **I do have a Zoom function on these cards on mouse click, if this is expensive I could only display this when the card is zoomed in on.
for example, let's say I need to just display these stats on the playing card at all/any given time:
#pragma strict
var strength : int = 10;
var dexterity : int = 8;
var constitution : int = 12;
var intelligence : int = 4;
Any advice on which direction I should go would be extremely appreciated (guitext? labels? box?). Sorry, I know this is a completely beginner question, but having a hard time finding a definitive answer on a best solution for displaying multiple variables onto the cards.
Your answer
Follow this Question
Related Questions
How to make a Score GUI. 0 Answers
How to display health on screen as text? 1 Answer
How do I get my GUI text to open on awake? 1 Answer
GUI Text Score counter 3 Answers
Gui Text Script 4 Answers