13 lines
268 B
C#
13 lines
268 B
C#
using UnityEngine;
|
|
|
|
namespace Photon.Chat.Demo
|
|
{
|
|
public class IgnoreUiRaycastWhenInactive : MonoBehaviour, ICanvasRaycastFilter
|
|
{
|
|
public bool IsRaycastLocationValid(Vector2 screenPoint, Camera eventCamera)
|
|
{
|
|
return base.gameObject.activeInHierarchy;
|
|
}
|
|
}
|
|
}
|