Hey, does anyone have any resources they could point me to that would help me understand how the Quest Guardian floor drawing is done. I want to use something similar where I paint on the floor using a raycast and after I draw the shape then it converts to a single mesh. I am assuming this is some sort of shader that reveals where drawn?
The only con to using the line renderer is that I notice that when your drawn line over laps itself it creates a single mesh from that object. Am over thinking this? Is is possible to use a shader and just draw and reveal what is underneath? But how would it fill in the shape?
If you have questions about ordering and stacking and layering:
Three (3) primary ways that Unity draws / stacks / sorts / layers / overlays stuff:
In short,
The default 3D Renderers draw stuff according to Z depth - distance from camera.
SpriteRenderers draw according to their Sorting Layer and Sorting Depth properties
UI Canvas Renderers draw in linear transform sequence, like a stack of papers
If you find that you need to mix and match items using these different ways of rendering, and have them appear in ways they are not initially designed for, you need to:
identify what you are using
search online for the combination of things you are doing and how to to achieve what you want.
There may be more than one solution to try.
Additional reading in the official docs:
And SortingGroups can also be extremely helpful in certain circumstances: