You are here:
< All Topics
Table of Contents

Check if target object is in line of sight.

agentthe game object (usually player) to look from
targetthe target to check for
layerMaskobjects layer mask which blocks the line of sight
targetLayerthe target layer name as string
anglethe line of sight view angle
distancethe line of sight distance
Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Consent to display content from Youtube
Consent to display content from Vimeo
Google Maps
Consent to display content from Google