Legacy Documentation: Version 4.6.2
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

RaycastResult

Description

A hit result from a BaseRaycastModule.

Variables

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.

Functions

Clear Reset the result.