Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

ICanvasRaycastFilter

interface in UnityEngine

Description

This element can filter raycasts. If the top level element is hit it can further 'check' if the location is valid.

Public Functions

IsRaycastLocationValidGiven a point and a camera is the raycast valid.