diff options
Diffstat (limited to 'Mage/Assets/ThirdParty/Photon/PhotonChat/Demos/DemoChat/IgnoreUiRaycastWhenInactive.cs')
-rw-r--r-- | Mage/Assets/ThirdParty/Photon/PhotonChat/Demos/DemoChat/IgnoreUiRaycastWhenInactive.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Mage/Assets/ThirdParty/Photon/PhotonChat/Demos/DemoChat/IgnoreUiRaycastWhenInactive.cs b/Mage/Assets/ThirdParty/Photon/PhotonChat/Demos/DemoChat/IgnoreUiRaycastWhenInactive.cs new file mode 100644 index 0000000..921f0ff --- /dev/null +++ b/Mage/Assets/ThirdParty/Photon/PhotonChat/Demos/DemoChat/IgnoreUiRaycastWhenInactive.cs @@ -0,0 +1,20 @@ +// -------------------------------------------------------------------------------------------------------------------- +// <copyright company="Exit Games GmbH"/> +// <summary>Demo code for Photon Chat in Unity.</summary> +// <author>developer@exitgames.com</author> +// -------------------------------------------------------------------------------------------------------------------- + + +using UnityEngine; + + +namespace Photon.Chat.Demo +{ + public class IgnoreUiRaycastWhenInactive : MonoBehaviour, ICanvasRaycastFilter + { + public bool IsRaycastLocationValid(Vector2 screenPoint, Camera eventCamera) + { + return this.gameObject.activeInHierarchy; + } + } +}
\ No newline at end of file |