2D object in 3D scene

Hi,

I have a nooby question.

What is the best way if I want integrate 2D objects in my 3D scene.
For instance, I want a rectangle above the head of characteres to represente their HP, and their name.

Is there a simple way to dynamicly draw this kind of elements, or should I everytime use textures?
Is there a simple way if I want to choose between scalling depending on how far the object is from the camera or not?

Tanks a lot.

You can use OnGUI code, or GUIText/GUITextures. See here for a script that makes a GUIText label follow a 3D object.

–Eric

Thank you,

WorldToViewportPoint function is what I especially missed.