You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
357 B
15 lines
357 B
4 years ago
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 遮挡该UI下所有物体事件响应
|
||
|
/// </summary>
|
||
|
public class UIFocus : MonoBehaviour, ICanvasRaycastFilter
|
||
|
{
|
||
|
public bool IsFocus = false;
|
||
|
public bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera)
|
||
|
{
|
||
|
return IsFocus;
|
||
|
}
|
||
|
}
|