Whenever I try to "Add New" (camera, hotspot, trigger, interaction, etc.) anything in a scene, I get the following error which prevents adding new elements to a scene:
NullReferenceException: Object reference not set to an instance of an object
AC.SceneManager.ListPrefabs () (at Assets/AdventureCreator/Scripts/Managers/SceneManager.cs:758)
AC.SceneManager.ShowGUI () (at Assets/AdventureCreator/Scripts/Managers/SceneManager.cs:334)
AC.AdventureCreator.OnGUI () (at Assets/AdventureCreator/Scripts/Managers/Editor/AdventureCreator.cs:128)
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'm using AC 1.51 and haven't had this issue until a few days ago. The only change I can think of is that I did make a copy of my full project folder (to test latest AC version in original file) and am now using the new copy of the files (because I was having issues with updating AC). But it has 100% of the original files and should be the same.
Comments
The horizontal lines issue is separate and should be posted in a new thread. It's due to the way Unity changed drawing code on Windows, but I've been unable to pin down exactly which version made the change. What version of Windows are you using?
You can correct the issue manually, however, by opening DrawStraightLine.cs and replacing "DrawLineWindows" on line 158 with "DrawLineMac".