Perform a Mouse Pick on a 2d scene and stores the results. Use Ray Distance to set how close the camera must be to pick the 2d object.
Store Did Pick Object
Store if a GameObject was picked in a Bool variable. True if a GameObject was picked, otherwise false.
Store Game Object
Store the picked GameObject in a variable.
Store the picked point in a variable.
Pick only from these layers.
Invert the mask, so you pick from all layers except those defined above.
Repeat every frame.