- Home /
point to a GameObject that is out-of-screen respecting edge
Hi,
Here's what I want to code:
Basically, I want to point an arrow to a GameObject that is out of the screen (helping the player to find it). The arrow should always be around the edge of the mobile screen (android & ios). I have 2 cameras: 1 for the arrow (GUI): orthographic 2D only & 1 for the GameObject: perspective.
Any pseudo code / class & method to get me started would be much appreciated!
Answer by dannyskim · Jan 17, 2012 at 07:12 PM
searching 'edge of screen unity3d' on Google yields results that should help get you started:
http://answers.unity3d.com/questions/62189/detect-edge-of-screen.html
http://answers.unity3d.com/questions/13991/getting-position-where-raycast-goes-offscreen.html
Your answer
Follow this Question
Related Questions
Oculus: Is player looking at Object A ? 1 Answer
Player to look at 0 Answers
How can i move an object while the coursor is locked? 1 Answer
Adjust GUI in all Screens?????? 1 Answer
Microsoft Surface Touch screen keyboard 2 Answers