18 lines
371 B
C#
18 lines
371 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
[AddComponentMenu("UI/NoDraw Graphics")]
|
|
[RequireComponent(typeof(CanvasRenderer))]
|
|
public class NoDrawGraphics : Graphic
|
|
{
|
|
protected override void OnPopulateMesh(VertexHelper vh)
|
|
{
|
|
vh.Clear();
|
|
}
|
|
public override void SetVerticesDirty()
|
|
{
|
|
}
|
|
public override void SetMaterialDirty()
|
|
{
|
|
}
|
|
} |