I’m looking for some guidance to drawing with ALINE in canvas. I have a large user supplied image I’m trying to draw a grid over. Is there a feature to scale a grid with canvas?
Here’s my simple example which illustrates my problem. Any thoughts?
public void Update()
{
//obviously don't do this.
var rect = GameObject.Find("SpriteSheet").GetComponent<RectTransform>();
using (draw.InLocalSpace(rect)) {
Draw.ingame.WireGrid(
Vector3.zero,
Quaternion.Euler(-90f, 0f, 0f),
new int2(32, 32),
new float2(32, 32),
Color.gray
);
}
}