Hi,
I'm trying to import skeleton data + atlas image/data made by our artist, and I get the following error:
NullReferenceException
UnityEngine.Material..ctor (UnityEngine.Shader shader)
SpineEditorUtilities.IngestSpineAtlas (UnityEngine.TextAsset atlasText) (at Assets/spine-unity/Editor/SpineEditorUtilities.cs:647)
SpineEditorUtilities.ImportSpineContent (System.String[] imported, Boolean reimport) (at Assets/spine-unity/Editor/SpineEditorUtilities.cs:269)
[Snip...]
I thought I could perhaps make a workaround by making a new material in Unity and reference that in code instead, but I'm very new to Unity and don't know my way around yet. From what I can tell, we've matched the recommended Spine export settings for Unity based off the tutorial videos.
As a final note, I also found that all the example prefabs initially start out with some default pink texture colour without transparency.
My setup:
- Unity 4.6.2f1 (OS X)
- Spine Unity runtime 2.1
- Spine 2.1.10 (Win)
Made a workaround by assigning the mat variable as such:
mat = new Material(Shader.Find("Transparent/Diffuse"));
But would be great if someone could give me insight into why this is happening 🙂