Interactable Player display icon

So quick background, I am working on putting together my first 2D networked multiplayer game (not first unity game). On the player’s display I would like to show a clickable, possibly right clickable too, icon or info card representing all the other characters (player and non-player) in the area with which the the player can interact, attack, etc. I here is a simple example of this card I for clarity.
2521776--174833--PlayerCard.png

Really my question here would be if there is a more built in way to do the UI piece of this than what I am currently doing. Right now I am using a game object with a sprite render for the player picture, then I am attaching a game object to that with a script that uses IMGUI to add in the text and status bars.

What I am not clear on is if there is a good way to make this a clickable button? Maybe add a collider to game object, or is there a way I can do all this with a GUI button that I have missed? Also layout, is there anything built in to unity to get these objects to lay out in a list box manner, or do I need to script something custom to do that?

by this you mean “immediate GUI” i.e. the legacy OnGUI functions?

for in game UI, you really should be using the canvas methods, because then the answer is simple a fairly simple “yes”

Panel, Image, text, two sliders (non interactable, update through code), event system

make a script which implements IPointerClick to do what you want when someone clicks on the thing you attach the script to
http://docs.unity3d.com/ScriptReference/EventSystems.IPointerClickHandler.html

again, canvas has “layout components” which will order the children of whatever recttransform you add the component to etc.
https://unity3d.com/learn/tutorials/topics/user-interface-ui

and lastly, “unity UI” section is for the new stuff anyway per it’s description :stuck_out_tongue:

Thanks, this is why I asked. I thought that there was probably a better way to do it, but I am still not used to what all is available in the new UI tools. Thanks for pointing me in the right direction and answering what ultimately ended up to be a rather silly question.

Sometimes the best place to hide information from me is right in front of my face :sweat_smile: