"Script Changes While Playing" for Shaders

This new setting has been great to keep Unity from recompiling code during play, but I found out recently that Shaders no longer recompile during play! So I started toggling the setting to recompile during play if I’m working on Shaders, and then toggling back when I go back to working in C#.
Would there be any way to split between C# and Shader recompile?

5 Likes

Yeah. It was perfect in Unity2018 where you could already disable C#recompile using this option, but shaders kept compiling. The distinction is useful because live coding is often impossible due to NullReferenceExceptions when not everything is serialized, but shaders can always be recompiled safely.

Bumping this for visibility, really hinders shader development a lot!

1 Like