This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This .gitignore file should be placed at the root of your Unity project directory | |
/[Ll]ibrary/ | |
/[Tt]emp/ | |
/[Oo]bj/ | |
/[Bb]uild/ | |
/[Bb]uilds/ | |
/[Ll]ogs/ | |
/[Uu]ser[Ss]ettings/ | |
# MemoryCaptures can get excessive in size. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class ExampleNonUIMonoBehaviour : MonoBehaviour | |
{ | |
private void Start() | |
{ | |
//Example of how to check for a position. This is the equivalent of EventSystem.current.IsPointerOverGameObject() except for UI Elements. | |
if (UIToolkitRaycastChecker.IsPointerOverUI()) | |
{ | |
//I'm under a part of the UI that's set to block raycasts! Don't try to raycast or something. |