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
Seite 1 von 1
colinday
7 years ago
-
colinday - Beiträge: 34
arkhampy
I want to know the same :/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
7 years ago
-
arkhampy - Beiträge: 47
Pharan
@colinday What makes you think Spine does this?
Also, I haven't noticed it break in 5.2.
Also, I haven't noticed it break in 5.2.
Spine-Unity Docs Repo, and check out the Unofficial Spine Users Tumblr.
7 years ago
-
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.
7 years ago
-
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. 7 years ago
-
colinday - Beiträge: 34
Mitch
Where the hell is that code? O.o
7 years ago
-
Mitch - Beiträge: 978
Majicpanda
SpineEditorUtilities file.
7 years ago
- Majicpanda
- Beiträge: 197
Pharan
Just to be clear. The
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.
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.
Spine-Unity Docs Repo, and check out the Unofficial Spine Users Tumblr.
7 years ago
-
Pharan - Beiträge: 5366
Mark topic unread
• Seite 1 von 1
Zurück zu Unity
- Alle Zeiten sind UTC