EZ Border Flying Icon is a mini-map that show the radar on the border of the screen. It is able to track anything as long as it is in 2D.
The logic is to use ray cast on objects that enter the tracking radius and find its collision point with the screen borders. No searching function is used in any part of the code because it’s slow. The user has to add / remove the objects from the tracking list.