Couple questions!

  • ALINE version: [1.7.9]
  • Unity version: [6000.3.10f1]
  • Render pipeline: [URP]

I just bought the Aline package and I had a couple questions.

  1. Is it possible to set a custom line width and have it remain consistent regardless of the distance to camera? Well after learning this was based on screen space I managed to figure this one out since I’m using an orthographic perspective, that made it easy.

  2. When drawing a poly line to end up with a closed shape, the last point doesn’t create a joint back with the first point. I mitigated this by just drawing one extra point back to the 2nd point to make that last joint show, but is there a setting or something I’m missing for that to happen without drawing that extra point?

  3. How would you recommend storing and disposing a redraw scope in unmanaged components?

Edit: I guess I should specify for in-game drawing and burst/ecs

This is a bit of a limitation I’m afraid. There’s built-in handling for it with the Circle, but not for general shapes.

How would you recommend storing and disposing a redraw scope in unmanaged components?

I think the RedrawScope is safe to use in unmanaged components already. It contains only a GCHandle and an integer reference. It’s trickier to get a CommandBuilder. That has to be done outside of burst, as it accesses managed data.

1 Like