#ShaderGraph - UI shader and Z order

1 messages · Page 1 of 1 (latest)

vapid ridge
#

Im trying to figure out custom shader for UI Image and when I use Canvas template (which seems like is way to go) Im hitting issue with Z sorting - I was hoping it would use same sorting mechanism default Image uses but for some reason it does not - I suddenly have to set Pos Z in Rect transform to some value for it to be in front and to different value for Game view. Any way I can force that shader/material to use same sorting mechanism default Image without material is using?

winter dune
vapid ridge
vapid ridge
winter dune
# vapid ridge 6000.3.2f1

I would try do a quick test repro of the issue in a new project in 6.3. to try rule it out being project related, then in 6.0. to try to rule it out as 6.3. issue

#

Releases past 6.0. are very buggy as of yet

vapid ridge
#

I did tested in a new scene but ok I will test blank project as well tomorrow but I would prefer not to need to install another version - Im quite light on space so Im trying to keep only one.
Sigh, and somebody would thought LTS was supposed to be stable 🙂 sadblob

winter dune
vapid ridge
winter dune
#

Simple enough to move your objects into a new scene
If the problem follows with them, that would indicate the error is somewhere in the objects or how they're set up, rather than in the scene internally

vapid ridge
#

It will not be easy to untangle it seems but when I open different scene nothing should be retained from previous one but this bug somehow jumps from it to scene where it worked if I did not opened the one where it did not ... thats baffling

winter dune
#

The last loaded scene is retained in memory so it's technically possible a bug can still propagate from it

vapid ridge
#

I do think I know what is causing it to not work but Im not sure why yet and why it propagates outside its scene - on that scene where it does not work I have composition manager and use multiple cameras to render different parts ... without it it seems to work
_That will sadly require much more fidling than I can commit to atm :/ _

winter dune
#

Haven't ever seen that happen though, or bugs in scenes to begin with

vapid ridge
#

Im starting to have some idea why it leaks across scenes I suppose ... it seems it was component before but now its window ... Im confused ... I hope its not some depreacted feature again after some time I did not worked on this part of project ...