Skip to content

Instantly share code, notes, and snippets.

@nkjzm
Created March 17, 2015 03:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nkjzm/6fa40aa70e5e06c5766d to your computer and use it in GitHub Desktop.
Save nkjzm/6fa40aa70e5e06c5766d to your computer and use it in GitHub Desktop.
uGUIのタッチ判定を消す
using UnityEngine;
using UnityEngine.UI;
public class IgnoreTouch : Button, ICanvasRaycastFilter{
public bool IsRaycastLocationValid (Vector2 sp, Camera eventCamera)
{
return false;
}
}
@nkjzm
Copy link
Author

nkjzm commented Mar 17, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment