I was wondering is there a way if example I click on an object a UI text will disappear and another one will appear and if I click again on the object the reverse will happen- you don’t have to give the full script BTW, Thank you.

There are different way you could go about it. But this is the option I think is the best:

Add Canvas Group to the parent object. Now you can edit the alpha value from 0 to 1 and anywhere in between to show/hide UI.

Notice the “Inetractable” option too. You can set it to false when UI is hidden so you can’t accidently hit the UI objects.
You can go one step further and animate the alpha value for some extra points :stuck_out_tongue:

The other option would be to use Animator and create animations for RectTransform. This is what I’m currently using but requires more effort however provides more functionality.

You can use the events and triggers:

https://unity3d.com/learn/tutorials/modules/beginner/ui/ui-events-and-event-triggers

You can attach the show/hide function on the elements and execute it from events.