-
-
Save LightGive/6e07773be82c544c1833f9b981a32ddc to your computer and use it in GitHub Desktop.
GraphicRaycasterの当たり判定だけを使う
This file contains 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 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(); | |
//} | |
protected override void OnPopulateMesh(UI.VertexHelper vh) | |
{ | |
base.OnPopulateMesh(vh); | |
vh.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
テラシュールさんのコード、OnFillVBOが古くなって廃止されたので新しいバージョン用に書き換えました