I am playing around and prototyping a roguelike bullet hell game. Could not find how can something similar to the screenshot can be implemented.
For instance boss has a dash ability. Before the dash trajectory is being drawn on the ground and them boss dashes on that trajectory. Spent an hour googling, but either there is nothing, or I was using the wrong term.
I would likely use a LineRender, two of them in this case, one for each leg.
Here’s some extra info on layering / sorting:
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: