Segments
Segments copied to clipboard
Wondering if I could get a recommendation on usage?
Hey there, I found I was quickly going to run into performance issues with what I was attempting to do with the built-in debug draw, which has lead me to your asset. I have only got one small aspect converted so far, but wanted to see if you had a recommendation before I went much further.
The first part of this clip is what I am currently doing with the standard unity drawing, then I click a "draw burst" and it then switches over to use your package with the bit I have so far.
I had to cut out a bunch of things because the gif had a max size of only 10mb and this one, which I tried to do super quick was still 9.8mb, lol.
I see that examples are using a texture, and I grabbed one of them to use to test it out, but that had me wondering how I might go about trying to achieve what I am trying to do. I am wanting the the various grid sections to each be a different color, then depending on which group gets selected, the objects that are in that group end up being drawn in the same color as the grid section that it is in. Currently, each 3d/box object is being drawn overtop of using Handles.DrawSolidRectangleWithOutline
, so that I can easily control the opacity of both the solid color and the outline at once, and that lets me simply include a color along with it.
I am wondering what might be the best approach to take to try and get multiple colors into different parts of the segments? Is this going to require a separate material for every color, or would modification to the shader be required? I am really against any of them, I am just wondering what you might recommend and think would actually work with this system, as I am not fully aware of the drawing limitations. Just hoping to end up with as minimal of an overhead as I can, while still giving a bit of flexibility. Ultimately, I would like to be able to see certain things through the buildings which are not actively being drawn over, like you can when using the debug drawers, but I need to take it one step at a time.
Any assistance would be greatly appreciated. :+1: