Case Status
Log In


Home ยป Action Reference»GUI Element Actions»GUIElement Hit Test
Community Wiki

GUIElement Hit Test

Performs a Hit Test on a Game Object with a GUITexture or GUIText component.

Game Object
The GameObject that has a GUITexture or GUIText component.
Specify camera or use MainCamera as default.
Screen Point
A vector position on screen. Usually stored by actions like GetTouchInfo, or World To Screen Point.
Screen X
Specify screen X coordinate.
Screen Y
Specify screen Y coordinate.
Whether the specified screen coordinates are normalized (0-1).
Hit Event
Event to send if the Hit Test is true.
Store Result
Store the result of the Hit Test in a bool variable (true/false).
Every Frame
Repeat every frame. Useful if you want to wait for the hit test to return true.



Last modified on 3/2/2012 3:13 PM by User.

  • RSS Feed