Skip to content

Instantly share code, notes, and snippets.

@yangruihan
Created December 1, 2019 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yangruihan/5e3b4fa13da63d49fa692eb388e94794 to your computer and use it in GitHub Desktop.
Save yangruihan/5e3b4fa13da63d49fa692eb388e94794 to your computer and use it in GitHub Desktop.
using UnityEngine.UI;
public class NonDrawingGraphic : Graphic
{
public override void SetMaterialDirty() { return; }
public override void SetVerticesDirty() { return; }
protected override void OnPopulateMesh(VertexHelper vh)
{
vh.Clear();
return;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment