unity3dUGUI空对象实现射线检测

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();
        }
    }
}
上一篇:IntelliJ IDEA 13.x 下使用Hibernate + Spring MVC + JBoss 7.1.1


下一篇:如何最大限度地减少DDOS攻击的危害