colinday

I saw in the release notes for the newly released Unity 5.2 the following:

Shaders: Can not create fixed function shaders using "new Material(string)" anymore. Shaders must come from assets or be fully precompiled in the editor

It looks like Spine was doing this ... will this upgrade to 5.2 be Spine breaking?

The full release notes for Unity 5.2 can be found here:
http://unity3d.com/unity/whats-new/unity-5.2
Benutzeravatar
colinday
  • Beiträge: 34

arkhampy

colinday hat geschrieben:I saw in the release notes for the newly released Unity 5.2 the following:

Shaders: Can not create fixed function shaders using "new Material(string)" anymore. Shaders must come from assets or be fully precompiled in the editor

It looks like Spine was doing this ... will this upgrade to 5.2 be Spine breaking?

The full release notes for Unity 5.2 can be found here:
http://unity3d.com/unity/whats-new/unity-5.2
I want to know the same :/
Benutzeravatar
arkhampy
  • Beiträge: 47

Pharan

@colinday What makes you think Spine does this?

Also, I haven't noticed it break in 5.2.
Benutzeravatar
Pharan
  • Beiträge: 5366

Mitch

Shouldn't be doing that anywhere. We might be using Material mat = new Material(Shader.Find("Spine/Skeleton")) but not generating a new material from a string... nope.
Benutzeravatar
Mitch
  • Beiträge: 978

colinday

My mistake ... I was only questioning it because I saw within the code things such as
_boneMaterial = new Material(Shader.Find("Particles/Alpha Blended"));
But if that's still OK, then no worries.
Benutzeravatar
colinday
  • Beiträge: 34

Mitch

Where the hell is that code? O.o
Benutzeravatar
Mitch
  • Beiträge: 978

Majicpanda

SpineEditorUtilities file.
Majicpanda
  • Beiträge: 197

Pharan

Just to be clear. The string argument in new Material(string) is whole shaderlab code. Not a shader name.

Unity 5.2 is dropping support for non-precompiled shaders (at least here) for the sake of compatiblity with some consoles or something, so compiling shaderlab code at runtime like that won't work anymore.

But Spine-Unity doesn't do that anywhere, so there's nothing to worry about.
Benutzeravatar
Pharan
  • Beiträge: 5366


Zurück zu Unity