【Unity】UI の当たり判定を無視する

DEVELOP, Unity

using System; 
using UnityEngine; 
using UnityEngine.UI; 
using UnityEngine.EventSystems; 
 
public class IgnoreRaycast : MonoBehaviour, ICanvasRaycastFilter 
{ 
    public bool IsRaycastLocationValid (Vector2 sp, Camera eventCamera) 
    { 
        return false; 
    } 
}

Posted by kazupon