// --------------------------------------------------------------------------------------------------------------------
//
// Demo code for Photon Chat in Unity.
// developer@exitgames.com
// --------------------------------------------------------------------------------------------------------------------
using UnityEngine;
namespace Photon.Chat.Demo
{
public class IgnoreUiRaycastWhenInactive : MonoBehaviour, ICanvasRaycastFilter
{
public bool IsRaycastLocationValid(Vector2 screenPoint, Camera eventCamera)
{
return this.gameObject.activeInHierarchy;
}
}
}