wit-ai / wit-unity

Wit-Unity is a Unity C# wrapper around the the Wit.ai rest APIs and is a core component of Voice SDK.

Home Page:https://developer.oculus.com/documentation/unity/voice-sdk-overview/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Response Matcher empty + throws error about GUI functions

palebluewanders opened this issue · comments

commented

Whenever I try to add response matcher to my response handler object, the response matcher is completely empty and I get this error:

ArgumentException: You can only call GUI functions from inside OnGUI.
UnityEngine.GUIUtility.CheckOnGUI () (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:300)

Screenshot 2023-06-12 at 10 39 54 AM

This error also occurs every time I click away from the response handler GO and back to it. I'm on Unity 2022.3.0. Any ideas?

commented

Update: Reverting to Unity 2021.3.20f1 resolves the above. So this seems to be a Unity 2022 issue.

Thanks for the report. We'll take a look at it.

commented

Is this happening with Conduit or without?

commented

Without I assume, since I'm new to Wit and haven't heard of Conduit. This was just me trying to apply stuff from beginner tutorials to my existing app.

commented

@palebluewanders You may want to check out Conduit if you are using a recent enough version of the SDK. We will need to update those tutorials. For now, you can find out more details in the Conduit section of the documentation: https://developer.oculus.com/documentation/unity/voice-sdk-conduit/