jinincarnate / off-screen-indicator

A simple solution for implementing target indicator, waypoint or HUD navigation system in unity.
GNU General Public License v3.0
84 stars 16 forks source link

Arrow stays at edge of screen when box is disabled. #5

Open AndrewBrough opened 1 year ago

AndrewBrough commented 1 year ago

Tried this out - works really well! Only issue is when using an arrow but no box, the arrow sticks at the edge of the screen where it entered, when I would have expected it to disappear as soon as the object comes on screen. This issue doesn't happen when the box indicator is enabled.

AndrewBrough commented 1 year ago

I have a working solution for this, but it's not very elegant - Keeping the box indicator enabled, I cloned the box prefab and removed the image component from it, and assigned that to the BoxObjectPool's pooled object field. I know it's technically spawning an instance for each object, but you see nothing, so it's valid enough for me for now.

I tried one or two things via code but didn't get an easy solution, so this is what I'll use for now.

jinincarnate commented 1 year ago

link is your issue similar to this one because this is addressed already and closed as well.