[Bake crash Unity] CustomEditor "LegacyIlluminShaderGUI" and StandardSpecular Shader

I use CustomEditor “LegacyIlluminShaderGUI” in a shader to preselect the o.emission has to be Baked or Realtime.

Unity Crash completely if the option is set to [Baked] and if there is used any other StandardSpecular shader in the scene. The default behavior of a custom or standard shader on o.emission is Realtime.

  1. There is no setup for bake an emission in [OBJECT] -[GI Lightning].
  2. Is there any other way to tell enlighten to Bake the emission inside by a shader property?

Thanks,Q

Hi! Can you please share your code that causes a crash so we can fix it? Are you trying to set MaterialGlobalIlluminationFlags?

The CustomEditor “LegacyIlluminShaderGUI” is a unity based script added to some standard shaders that use emission and UnityStandardCore.cginc. Fortunately the bug does appear in the latest beta 5.3.0b4 for any reason.