Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Last active May 9, 2018 08:32
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tsubaki/fb3da4eb39571aca6748 to your computer and use it in GitHub Desktop.
Save tsubaki/fb3da4eb39571aca6748 to your computer and use it in GitHub Desktop.
GraphicRaycasterの当たり判定だけを使う
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
using UnityEngine.UI;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace UnityEngine.UI
{
public class GraphicCast : Graphic{
protected override void OnFillVBO (System.Collections.Generic.List<UIVertex> vbo)
{
base.OnFillVBO (vbo);
vbo.Clear();
}
#if UNITY_EDITOR
[CustomEditor(typeof(GraphicCast))]
class GraphicCastEditor : Editor
{
public override void OnInspectorGUI() {
}
}
#endif
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment