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 yamdeking
Mar 11 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
Can you post the fix please? I'm having the same 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 :)
That worked, thanks! Much Appreciated.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
202 People are following this question.
should i make a 1 mesh character or make a mesh for every limb?
Sprite does not appear in mobile with rotation animation?
Should weapons be different sprites?
Attached object animation lagging / layer change inside animation
Unity 5 Animator hides Sprites on Android [Strange]