Hi Chris,
I think I might've broken something, but I have no idea how, so I'm hoping you could shed some light on my situation! I haven't messed with any code, so I don't think it's anything on that side that could have gone wrong.
I'm using AC for all my menus. Whenever I have an input element in any menu, whether it's an old one or a new one just for testing, I get a continuous flood of critical error messages in my console. As soon as I toggle "is visible?" off, the error stops (but obviously the element on longer functions). If left visible, I can see the element in the editor and at runtime, but using it in any way completely hangs the game.
Here's the error that I get:
NullReferenceException: Object reference not set to an instance of an object
AC.Options.GetLanguageName () (at Assets/AdventureCreator/Scripts/Options/Options.cs:571)
AC.MenuInput.Display (UnityEngine.GUIStyle _style, Int32 _slot, Single zoom, Boolean isActive) (at Assets/AdventureCreator/Scripts/Menu/Menu classes/MenuInput.cs:213)
AC.MenuPreview.OnGUI () (at Assets/AdventureCreator/Scripts/Menu/MenuPreview.cs:118)
Comments
Open up MenuInput.cs, and find line 211:
if (isSelected || isActive)
And replace it with:
if (Application.isPlaying && (isSelected || isActive))
Does that fix it?