ArgumentException: parsing "[^\w\_]" - Unrecognized escape sequence \_.
System.Text.RegularExpressions.RegexParser.ScanCharEscape () (at <343bdfbb3c2d4d21b745a87548c1a7cd>:0)
System.Text.RegularExpressions.RegexParser.ScanCharClass (System.Boolean caseInsensitive, System.Boolean scanOnly) (at <343bdfbb3c2d4d21b745a87548c1a7cd>:0)
System.Text.RegularExpressions.RegexParser.CountCaptures () (at <343bdfbb3c2d4d21b745a87548c1a7cd>:0)
System.Text.RegularExpressions.RegexParser.Parse (System.String re, System.Text.RegularExpressions.RegexOptions op) (at <343bdfbb3c2d4d21b745a87548c1a7cd>:0)
System.Text.RegularExpressions.Regex..ctor (System.String pattern, System.Text.RegularExpressions.RegexOptions options, System.TimeSpan matchTimeout, System.Boolean useCache) (at <343bdfbb3c2d4d21b745a87548c1a7cd>:0)
System.Text.RegularExpressions.Regex.Replace (System.String input, System.String pattern, System.String replacement, System.Text.RegularExpressions.RegexOptions options, System.TimeSpan matchTimeout) (at <343bdfbb3c2d4d21b745a87548c1a7cd>:0)
System.Text.RegularExpressions.Regex.Replace (System.String input, System.String pattern, System.String replacement) (at <343bdfbb3c2d4d21b745a87548c1a7cd>:0)
AC.ActionListAssetMenu.AssetGUI (System.String label, AC.ActionListAsset actionListAsset, System.String defaultName, System.String api, System.String tooltip) (at Assets/AdventureCreator/Scripts/ActionList/ActionListAsset.cs:263)
AC.InventoryManager.ItemsGUI () (at Assets/AdventureCreator/Scripts/Managers/InventoryManager.cs:356)
AC.InventoryManager.ShowGUI () (at Assets/AdventureCreator/Scripts/Managers/InventoryManager.cs:156)
AC.AdventureCreator.OnGUI () (at Assets/AdventureCreator/Scripts/Managers/Editor/AdventureCreator.cs:244)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:295)
UnityEditor.HostView.Invoke (System.String methodName) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:288)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:261)
UnityEditor.DockArea.OldOnGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:390)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, System.Boolean isComputingLayout) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:237)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:380)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleEvent (UnityEngine.Experimental.UIElements.EventBase evt) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:359)
UnityEngine.Experimental.UIElements.EventDispatcher.DispatchEvent (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.IPanel panel) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:260)
UnityEngine.Experimental.UIElements.UIElementsUtility.DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel panel) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:243)
UnityEngine.Experimental.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:74)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:171)
Comments
Doesn't matter which Inventory item. I tried different names, removing spaces etc...
Also tried renaming Inventory manager to no avail.
No console message with the ActionList problem I'm afraid.
I'm disabling Metal Editor Support in the Player Settings, but the problem persists even when it's enabled.
Also tried reimporting AC, but no luck.
Creating scene action lists works seamlessly, though.
very happy to debug, but unfortunately it didn't work.
However, I decided to try upgrading Unity to 2018.3 beta and the problem just went away!
So sorry couldn't find a solution, but everything's fine now
So I downgraded back to 2018.2.17f1 and the issues came back.
BUT after modifying ActionListAssets.cs as you suggested, the problem went away again.
So the change works in 2018.2.17f1, but not in 2018.2.0f2. Odd, could well be a Unity issue in that case.
Yup looks like it is - also I forgot to say thanks for the help again!
Just wanna report that I get an identical error when trying to create an inventory item interaction in 2018.2.16f1 with and without fix, it does however work with fix in 2018.2.18f1.
Thank you for the feedback, @harald921.
I'm working in 2018.3 and was having the same issue as OP. I changed that line in ActionListAssets.cs and it works now. Just fyi.