Search Unity

"Script Changes While Playing" for Shaders

Discussion in 'Editor & General Support' started by RoastedPotatoe, Nov 29, 2019.

  1. RoastedPotatoe

    RoastedPotatoe

    Joined:
    Nov 5, 2016
    Posts:
    6
    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?
     
  2. AnSstuff

    AnSstuff

    Joined:
    Mar 24, 2018
    Posts:
    4
    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.
     
  3. Iron-Warrior

    Iron-Warrior

    Joined:
    Nov 3, 2009
    Posts:
    838
    Bumping this for visibility, really hinders shader development a lot!
     
    kiber_ likes this.