Advanced GUI?

Okay i want to make this simple to understand.

I am knew to GUI completely. Like never done it before. But i’m a novice in coding and have the ropes already. I need to make a 3d GUI. I kinda don’t know how to explain it so i will give an example. Imagine you are walking into a room with loot. and above the loot are little icons that show what class they are in. but they aren’t really static to the screen. you can move around them and they will still face you but they aren’t in one place. An example is in like “The Last Of Us” Where the items have little floating icons. If you know what they are called or how to do them all help is very appreciated!

~Wardwarf28

DwarvenGaming

If I’m understanding your desires you wouldn’t be programming actual UnityGUI. What you’d want is to make a plane that is a child of the object in question. The plane would be the dimensions you want the image to be, and you would place the desired image on said plane. You’d then program a script that makes the plane’s forward vector always point at the cameras position as well as decide at what distance you want the plane to be active. At the moment any “GUI” elements NOT static to screen space need to be handled this way (unless there is a 3rd party script being used that some how does it differently).

I haven’t played the last of us yet so I’m not 100% sure of what you’re asking but if you want to place GUI elements as an overlay to 3D objects, there is a method in the Camera class to calculate the 2D screen coordinates of a 3D object.

Check this out, maybe it’ll do what you want: