Optionally render a redrawscope

  • ALINE version: Latest Pathfinding Plugin

  • Unity version: 2022.3.62f2

  • Render pipeline: built in

    Is there a mechanism to build out many redraw scopes, but only selectively render them? Basically a way to disable a few. Without disposing them and losing them, but maintaining their state for later selective rendering?

    I’d like to have some very verbose debugging of logic around some of my path grid logic keyed for example to a vector3i voxel position, so I can isolate the debug rendering associated with an individual block location, selectively turn off one or more, etc. I need basically the ability to SetVisible(true/false) on individual redraw scopes

I’ll tag Aron here to see if he knows a good workaround here. My first thought is couldn’t you wrap these in a set of if statements though?

That only works in situations where you can easily re-trigger the code that generates the debug in the first place, so the debug code can conditionally build only what you have enabled.

This isn’t a good substitute for being able to toggle the visibility of certain batches(redraw scopes). Often you have deep complex one time execution of code that it isn’t really possible to retrigger just to capture a tailored set of debug data, but you still want to capture debug information that allows you to pick and choose.

For example, the one time random world generation for a procedural generated game, you might capture many independent ‘scopes’ of debug information, and you’d like to be able to toggle these like photoshop layers to debug whatever you are investigating. You don’t always know the scope of what exactly you want to look at, so it’s important that there is a mechanism after the capture of the debug information to selectively display it.

Hi

Sorry, this is currently not possible, I’m afraid. All the caching data for redraw scopes is discarded if you do not draw it during a frame.

I’ll consider this a feature request.

Easy enough to add a visible toggle

ALINE_local_changes.patch.txt (13.0 KB)

intertwined a bit with a few functions to visualize trace data, but easy to pick out

1 Like