Monday, January 26, 2015

Display Health Bar and Player Name on top of moving character


So as you can see, my moving character is a spaceship, and I want to display health bar and player name on the moving character

below is how I do it
1. For health bar, I simply create a 3D cube and color it red, then you drag the cube under your spaceship

2. For name, I create an empty object, then add component "TEXT MESH" into the empty object, set the font size, rotation as below, after I am done, i drag the empty object under my spaceship


as you can see Font Size = 50 (to make it really sharp), then scale it small x=0.1 , y=0.1 , z=0.1
then rotate it 90 degree X, becoz my game is top down, and align it nicely to your spaceship

No comments:

Post a Comment