unity3dUGUI空对象实现射线检测

简介: using UnityEngine;using System.Collections;namespace UnityEngine.UI{ public class Empty4Raycast : MaskableGraphic ...
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();
        }
    }
}
相关文章
|
4月前
|
图形学
Unity 用脚本获取物体和组件(上)
Unity 用脚本获取物体和组件(上)
111 0
|
4月前
|
编译器 图形学
Unity用脚本获取物体和组件(下)
Unity用脚本获取物体和组件(下)
|
7月前
|
图形学
|
7月前
|
图形学
|
10月前
【Unity3D--自由观察模型】模型自动旋转+触屏旋转和缩放
展示3D模型,同时实现模型自动旋转和触屏旋转和缩放
223 0
|
10月前
|
编译器 API 图形学
【unity细节】基于unity子对象(如相机)为什么无法进行z轴的拖拽移动和z轴自动归位的问题
【unity细节】基于unity子对象(如相机)为什么无法进行z轴的拖拽移动和z轴自动归位的问题
115 0
|
10月前
|
图形学
【unity细节】unity物体Model和prefab的区别
【unity细节】unity物体Model和prefab的区别
143 0
|
图形学 开发者
Unity3D刚体
Unity3D刚体
135 0
【ThreeJs】(1)四大组件:场景、相机、物体、渲染器 | 创建一个矩形 | THREE脑图
【ThreeJs】(1)四大组件:场景、相机、物体、渲染器 | 创建一个矩形 | THREE脑图
327 0
【ThreeJs】(1)四大组件:场景、相机、物体、渲染器 | 创建一个矩形 | THREE脑图

热门文章

最新文章