# Make UI Image hover over gameobject?

**URL:** <https://discussions.unity.com/t/make-ui-image-hover-over-gameobject/603178>\
**Category:** UI\
**Tags:** IMGUI\
**Created:** [October 28, 2015, 12:23am UTC](https://discussions.unity.com/t/make-ui-image-hover-over-gameobject/603178 "2015-10-28T00:23:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Treasureman](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/treasureman/32/457929_2.png) [@Treasureman](https://discussions.unity.com/u/Treasureman)\
**Post date:** [October 28, 2015, 12:23am UTC](https://discussions.unity.com/t/make-ui-image-hover-over-gameobject/603178/1 "2015-10-28T00:23:10Z")

</div>

I’m making an FPS puzzle game, and I’m having some trouble with the UI. I want to make a UI image hover around a certain game object, like what most First Person Shooters to show objectives. Here are some examples…

Destiny:

 ![2357846--159822--Screenshot (603).png](https://europe1.discourse-cdn.com/unity/original/4X/d/c/8/dc8bf23e797009f86a5bb4a50a5d58859c93c1ba.png) ![2357846--159823--Screenshot (604).png](https://europe1.discourse-cdn.com/unity/original/4X/4/1/3/413ea6c55f2d03d4e44769eac62d60d3dda40783.png)

Call of Duty: Black Ops:

 ![2357846--159824--Screenshot (605).png](https://europe1.discourse-cdn.com/unity/original/3X/1/9/193659a5236d203bbe56fc7d208a57bb8bf5d8b8.png) ![2357846--159825--Screenshot (606).png](https://europe1.discourse-cdn.com/unity/original/4X/9/d/7/9d786c16870f5352a10c3b33868b6be532bb2746.png)  
How would I do this with a UI Image? What kind of canvas would I need to set up?

---

<div class="post-metadata">

**Author:** ![Baste](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/baste/32/880289_2.png) [@Baste](https://discussions.unity.com/u/Baste)\
**Post date:** [November 3, 2015, 2:07pm UTC](https://discussions.unity.com/t/make-ui-image-hover-over-gameobject/603178/2 "2015-11-03T14:07:32Z")

</div>

The key point here is the Camera’s method [WorldToScreenPoint](http://docs.unity3d.com/ScriptReference/Camera.WorldToScreenPoint.html).

It gives you where on the screen some point in the world is.

Then you’ll have to position your image on some canvas at that point, and offset it based on your needs.
