Turn URP SSAO on and off at runtime

To me it shows a shift in how Unity approaches their API design in general. It’s very noticable with UI Toolkit for example. Their default state is to make everything private and only release very few parts of the API to keep the “API surface”, which they then have to support officially, small. Iirc some Unity employees even confirmed that this is their guiding principle now. From a nitpicker manager perspective this makes sense (less support = less costs).

In reality this stifles innovation. We developers can not give proper feedback on an API that is not publicly available and it’s tiresome to call out all the APIs that should be public in hopes of Unity “fixing” them. Especially if it would be immediately obvious that this API should be public if anyone within Unity ever cared to make even the smallest of sample projects with it. Unity seems not interested in improving at that front. Ending development of the Gigaya showed that the nitpicky managers won (this project has no direct ROI → kill it).

/Rant

1 Like

Thank you, your code is valid in Unity 6 as well.

2 Likes

Can this code be modified so I also have an abbility to on\of shadows completely (not on every camera\light source, but in the pipeline itself?)