unity3dUGUI空对象实现射线检测
2018-07-22 本文已影响7人
好怕怕
using UnityEngine;
using System.Collections;
namespace UnityEngine.UI
{
public class Empty4Raycast : MaskableGraphic
{
protected Empty4Raycast()
{
useLegacyMeshGeneration = false;
}
protected override void OnPopulateMesh(VertexHelper toFill)
{
toFill.Clear();
}
}
}
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace UnityEngine.UI
{
/// <summary>
/// 空对象启用射线检测
/// </summary>
public class NoDrawingRayCast : Graphic
{
public override void SetMaterialDirty()
{
}
public override void SetVerticesDirty()
{
}
[Obsolete]
protected override void OnFillVBO(List<UIVertex> vbo)
{
vbo.Clear();
}
}
}