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.
Other
79 stars 20 forks source link

Response Matcher empty + throws error about GUI functions #88

Open palebluewanders opened 1 year ago

palebluewanders commented 1 year ago

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?

palebluewanders commented 1 year ago

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

yolanother commented 1 year ago

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

MokhtarKhorshid commented 1 year ago

Is this happening with Conduit or without?

palebluewanders commented 1 year ago

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.

MokhtarKhorshid commented 1 year ago

@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/