0
Under review

ShaderBindings.gen.cs bug in Unity 5.1.1f1 with ShaderForge 1.17

Tulrath fa 9 anys updated by Freya Holmér (Developer) fa 9 anys 2
Just downloaded ShaderForge 1.17, and I'm getting the following error:

NullReferenceException
UnityEngine.Material..ctor (UnityEngine.Shader shader) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/ShaderBindings.gen.cs:168)



I have Unity 5.1.1f1 64-bit, running Windows 7, ATI Mobility Radeon HD4200.

To Recreate: I created a new project, imported a cube mesh (from Blender) with 1 UV channel, created a new material, applied the material to the cube, created a new shader in shader forge (used the default PBR shader), set the material to use the shader forge shader.

I get this error every time I create a new ShaderForge shader under Unity 5.1.1f1.
Here are some of things I've tried to resolve this (none have worked):

1. Placed the shader directly under a "Resources" folder.
2. Added the shader to the "Always Included Shaders" list in the GraphicsSettings.
3. Tried both Deferred and Forward rendering (made sure to set the shader to match).

None of these have worked.
Under review
That's, really odd. I barely know what that even is, it's not the Shader Forge code as far as I can tell. Looks like a constructor failed somehow. Might have something to do with your platform setting?