Select your preferred scripting language. All code snippets will be displayed in this language.
struct in UnityEngine.EventSystems
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseA hit result from a BaseRaycaster.
depth | The relative depth of the element. |
distance | Distance to the hit. |
gameObject | The GameObject that was hit by the raycast. |
index | Hit index. |
isValid | Is there an associated module and a hit GameObject. |
module | BaseInputModule that raised the hit. |
screenPosition | The screen position from which the raycast was generated. |
sortingLayer | The SortingLayer of the hit object. |
sortingOrder | The SortingOrder for the hit object. |
worldNormal | The normal at the hit location of the raycast. |
worldPosition | The world position of the where the raycast has hit. |
Clear | Reset the result. |