Wiki

Case Status
Log In

Wiki

 
Home ยป Action Reference»Input Actions»Screen Pick
Index
Navigation
Community Wiki

Screen Pick

Perform a raycast into the scene using screen coordinates and stores the results. Use Ray Distance to set how close the camera must be to pick the object.

Screen Vector
A Vector3 screen position. Commonly stored by other actions.
Screen X
X position on screen.
Screen Y
Y position on screen.
Normalized
Are the supplied screen coordinates normalized (0-1), or in pixels.
Ray Distance
The length of the ray to use.
Store Did Pick Object
Store whether the ray hit an object in a Bool Variable.
Store Game Object
Store the hit Game Object in a Game Object Variable.
Store Point
Store the world position of the hit point in a Vector3 Variable.
Store Normal
Store the normal of the hit point in a Vector3 Variable.
Store Distance
Store the distance to the hit point.
Layer Mask
Pick only from these layers. Set a number then select layers.
Invert Mask
Invert the mask, so you pick from all layers except those defined above.
Every Frame
Repeat every frame.
Tags:

Last modified on 4/18/2011 8:34 PM by User.

  • RSS Feed