Hotbar appears when a certain gameobject is selected?

I have a gameobject that the player can select and would like a hotbar with several buttons to appear, but only when the gameobject is selected. I have an image in the canvas with all of the buttons on, so the image is probably the thing that should appear and disappear.


Should be as straightforward as creating your gameobject from a button object (adding a button script component to an existing gameobject should also work). Then defining in the button component a onclick function (click “+” at the bottom of the component)
Finally this function should either enable / disable the hotbar, or you can keep it enabled and just move it off canvas when you don’t need it and moving it on canvas when you need it.