コンテンツへスキップ

KAZUPON研究室

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

2021/01/07 by kazupon
using System; 
using UnityEngine; 
using UnityEngine.UI; 
using UnityEngine.EventSystems; 
 
public class IgnoreRaycast : MonoBehaviour, ICanvasRaycastFilter 
{ 
    public bool IsRaycastLocationValid (Vector2 sp, Camera eventCamera) 
    { 
        return false; 
    } 
}
カテゴリー DEVELOP、Unity
【Defold】手続き型でアニメーションできる「Def Timeline」アセット
キーボードの底打ち音を軽減する
© 2025 KAZUPON研究室 • Built with GeneratePress