Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

ICanvasRaycastFilter.IsRaycastLocationValid

Switch to Manual
public function IsRaycastLocationValid(sp: Vector2, eventCamera: Camera): bool;

Parameters

spScreen position.
eventCameraRaycast camera.

Returns

bool Valid.

Description

Given a point and a camera is the raycast valid.