Created
March 17, 2015 03:50
-
-
Save nkjzm/6fa40aa70e5e06c5766d to your computer and use it in GitHub Desktop.
uGUIのタッチ判定を消す
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
public class IgnoreTouch : Button, ICanvasRaycastFilter{ | |
public bool IsRaycastLocationValid (Vector2 sp, Camera eventCamera) | |
{ | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使い方等はこちら
http://kohki.hatenablog.jp/entry/uGUI-IgnoreTouch