ro-webgl/Assets/Src/Core/UI/UIRaycastNoDraw.cs
2021-12-21 09:40:39 +08:00

17 lines
385 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// 不进入UI的绘制队列但是可以被点击
/// 可以用于扩大点击响应区域
/// </summary>
public class UIRaycastNoDraw : Graphic
{
protected override void UpdateGeometry()
{
// 不填充任何顶点数据
}
}