anima2d SpriteMesh Editor doesn't load meshes
Hey, I have been working with anima2d since launch and had a great time so far. For some reason the sprite mesh editor today fails to open my meshes (which it did in the past) resulting in the following error: "NullReferenceException: Object reference not set to an instance of an object Anima2D.TextureEditorWindow+Styles.get_showBonesImage () (at Assets/Anima2D/Scripts/Editor/TextureEditorWindow.cs:46) Anima2D.TextureEditorWindow+Styles..ctor () (at Assets/Anima2D/Scripts/Editor/TextureEditorWindow.cs:75) Anima2D.TextureEditorWindow.InitStyles () (at Assets/Anima2D/Scripts/Editor/TextureEditorWindow.cs:154) Anima2D.TextureEditorWindow.OnGUI () (at Assets/Anima2D/Scripts/Editor/TextureEditorWindow.cs:387) Anima2D.SpriteMeshEditorWindow.OnGUI () (at Assets/Anima2D/Scripts/Editor/SpriteMeshEditorWindow.cs:191) System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)"
I haven't made any changes to the project since yesterday and even tried debugging the problem on an old version of the project in which it worked fine. I'm clueless to what might have caused this issue and would be glad for any advice.
Answer by Yamf · Mar 11, 2017 at 09:42 PM
Problem solved T_T The problem was that the path in two of anima's scripts was different than in my project. A simple change of paths fixed my problem
sorry, i don't remember the exact scripts in which this occurred. go to the console and just double click the error. this will load the scripts (2 scripts in total). now simply change the path from "Anima2D/ScriptName" to "Assets/Anima2D/Editor Default Resources/Anima2D/SpriteName" hope this helped :)
Answer by moosefreak · Oct 20, 2017 at 06:39 AM
To anyone else having this problem, just make sure your "Editor Default Resources" folder is in the root of your Assets folder!
Can you explain in more detail? There is a Resources folder in the Anima2D folder structure and I also have one in root of Assets, but the spritemesh editor is triggering a Unity internal error.
Answer by Jodwig · Dec 31, 2020 at 03:16 AM
For me worked deleting "Editor Default Resources" in the Assets folder. It probably was some leftovers from the old Anima2D version.
Your answer
Follow this Question
Related Questions
Sprite animation cannot be play when player retry Unity 0 Answers
Hello! I'm trying to set up sprites animations 0 Answers
how to playback a sequence of mesh for a "stop motion" 0 Answers
Syncing 2D Sprite Animation 0 Answers
How to do these energy spheres 0 Answers