hch
3 小时以前 90d08dded86ebd1ce4edddc388b2347dda26148d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//--------------------------------------------------------------
//      [    Author   ]:                 Leonard.wu
//      [ CopyRight ]:                  
//--------------------------------------------------------------
 
using UnityEngine;
using UnityEngine.UI;
using System.Collections.Generic;
 
/// <summary>
/// 空白的图形组件,这个组件可以影响UI事件,但是不会参与绘制
/// 即它不会影响DrawCall,也不会增加顶点
/// </summary>
[DisallowMultipleComponent]
public class RayAccepter:MaskableGraphic {
 
    protected override void OnPopulateMesh(VertexHelper vh) {
        base.OnPopulateMesh(vh);
        vh.Clear();
    }
}