c1_unity/Assets/Scripts/Component/UI/EmptyRaycast.cs
2023-04-03 11:04:31 +08:00

21 lines
402 B
C#

using UnityEngine;
using System.Collections;
using UnityEngine.UI;
namespace BF
{
[RequireComponent(typeof(CanvasRenderer))]
public class EmptyRaycast : MaskableGraphic
{
protected override void OnPopulateMesh(VertexHelper vh)
{
vh.Clear();
}
protected EmptyRaycast()
{
useLegacyMeshGeneration = false;
}
}
}