LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

ICanvasRaycastFilter.IsRaycastLocationValid

public bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera);

Parameters

spScreen position.
eventCameraRaycast camera.

Returns

bool Valid.

Description

Given a point and a camera is the raycast valid.