using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// 遮挡该UI下所有物体事件响应 /// public class UIFocus : MonoBehaviour, ICanvasRaycastFilter { public bool IsFocus = false; public bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera) { return IsFocus; } }