Setting up sorting order at runtime
Hi
I manage to set the sorting order of my shape all fine when I play with the demo parameters
Then I would like to set that SortingOrder parameter at runtime
and Draw.sortingOrder doesn't exist.
What should I do ?
cheers
ps:
Also, am I using the documentation wrong ?
I find myself digging in the sample and library code all the time to try and
find things
ex:
it took me a while to come up with things like
Draw.StencilComp = CompareFunction.Less;
Draw.StencilOpPass = StencilOp.Keep;
Draw.StencilRefID = 0;
Draw.StencilReadMask = 255;Draw.StencilWriteMask = 255;
yeah, Unity's sprites will render as part of the transparent queue, while immediate mode generally happens afterwards, regardless of depth (in immediate mode)
So, does that means there is zero chance of me getting Shapes to work with my app ?
Working on some sort of puzzle games where the pieces of the puzzle are sprites.
I wanted to use Shapes so that I coud animate the contour of the sprites once the puzzle is complet
animat => immediate mode
immediate mode => NO SortingOrder between shapes and sprites
end of the problem solving ?