- Home /
Looking for a simple way to Add an Image or text to a 3d Model
So I'm just looking for something simple not something finished. Though I guess using a atlas would be a bonus.
I have 3d cylinders that I would like to either tack some words onto or a picture for my testing. It seems like there should be a simple way but I cannot find one.
Can anyone help me?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Cherno · Sep 25, 2013 at 01:33 PM
If I understand correctly, you would like to display 2d text or icons where a 3d model is situated in 3d space?
Try something like this:
 var WorldNamePos : Vector3;
 
 function OnGUI()
 {
      WorldNamePos = Camera.main.camera.WorldToScreenPoint(Vector3(transform.position.x, transform.position.y + 1.5, transform.position.z));
 
      GUI.Label (Rect (WorldNamePos.x, Screen.height - WorldNamePos.y, 100, 50),"Object Name");
 
 }  
             
Your answer
 
 
             Follow this Question
Related Questions
Asset store categories - How to determine best fit for my asset 0 Answers
2d sprite characters in a 3d game 1 Answer
How to make 3D colliders on sprites? 0 Answers
Does unity support flatsprite? 1 Answer
How do I set a sprite to a sphere? 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
               
 
			 
                