【Unity】UI の当たり判定を無視する
using System;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class IgnoreRaycast : MonoBehaviour, ICanvasRaycastFilter
{
public bool IsRaycastLocationValid (Vector2 sp, Camera eventCamera)
{
return false;
}
}