Perform a raycast into the 2d scene using screen coordinates and stores the results. Use Ray Distance to set how close the camera must be to pick the 2d object. NOTE: Uses the MainCamera!
A Vector3 screen position. Commonly stored by other actions.
X position on screen.
Y position on screen.
Are the supplied screen coordinates normalized (0-1), or in pixels.
Store Did Pick Object
Store whether the Screen pick did pick a GameObject
Store Game Object
Store the picked GameObject
Store the picked position in world Space
Pick only from these layers.
Invert the mask, so you pick from all layers except those defined above.
Repeat every frame.