Skip to content

Instantly share code, notes, and snippets.

@beinteractive
Created January 15, 2015 03:09
Show Gist options
  • Save beinteractive/dcfa514d11caf7510518 to your computer and use it in GitHub Desktop.
Save beinteractive/dcfa514d11caf7510518 to your computer and use it in GitHub Desktop.
using UnityEngine;
using UnityEngine.UI;
public class NonTouchable : MonoBehaviour, 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