Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peroon/a2ccb90d873203c615ba to your computer and use it in GitHub Desktop.
Save peroon/a2ccb90d873203c615ba to your computer and use it in GitHub Desktop.
if (Physics.Raycast(ray, out hit) && !UnityEngine.EventSystems.EventSystem.current.IsPointerOverGameObject()){}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment