- Home /
Question by
VLunarFangV · May 05, 2013 at 11:15 AM ·
javascriptvariablestringnoob
Variable in String
I've been looking but haven't yet found any way to merge strings and a variable together.
Something like "You found x bullets"
Being new to Unity and JavaScript I don't really know too much, so sorry if it's a painfully obvious answer.
Comment
Best Answer
Answer by VLunarFangV · May 05, 2013 at 10:05 AM
Nevermind, I found the solution myself. For those who have the same issue in future, use this:
var ammo : int;
GUI.Label (Rect (5, 5, 75, 75), "You found "+ ammo + " bullets.";