Initial commit

This commit is contained in:
2026-06-02 18:57:47 -04:00
commit 59d26a915d
268 changed files with 41240 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
using UnityEngine.TestTools;
using UnityEngine.UI;
namespace BracerLib.UI
{
/// A concrete subclass of the Unity UI `Graphic` class that just skips drawing.
/// Useful for providing a raycast target without actually drawing anything.
[ExcludeFromCoverage]
public class NonDrawingGraphic : Graphic
{
public override void SetMaterialDirty() { }
public override void SetVerticesDirty() { }
/// Probably not necessary since the chain of calls `Rebuild()`->`UpdateGeometry()`->`DoMeshGeneration()`->`OnPopulateMesh()` won't happen; so here really just as a fail-safe.
protected override void OnPopulateMesh(VertexHelper vh)
{
vh.Clear();
}
}
}