New Input System enabled, but Bubble Text prefab not working

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ehdusjenny
Posts: 11
Joined: Thu Dec 29, 2022 3:58 pm

New Input System enabled, but Bubble Text prefab not working

Post by ehdusjenny »

Hello,

I'm using the new Input System, and I've enabled USE_NEW_INPUT in the Dialogue System Welcome window. The Dialogue System is working fine with the Basic template.

I'm trying to use the Bubble template. I've added Bubble Template Standard UI Subtitle Panel prefab to the Dialogue Manager's Dialogue UI. However when I run the game, it's giving me this error:

Code: Select all

InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.
UnityEngine.Input.get_mousePosition () (at <b7f3f927b2fb45af9f06b7b94f1a7fc0>:0)
PixelCrushers.DialogueSystem.UnityGUI.GUIRoot.OnGUI () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Legacy/GUI Controls/GUIRoot.cs:36)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Are there any other configurations I'm missing to support the Bubble template?
Or is the new Input System supported for just the Basic template?

Thank you for your help.
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: New Input System enabled, but Bubble Text prefab not working

Post by Tony Li »

Hi,

Assign the Basic Standard Dialogue UI prefab to the Dialogue Manager GameObject's Dialogue UI field.

Then see: How To: Show Overhead Conversation Bubble Text
(Briefly: Add a Dialogue Actor component to the character. Set Dialogue UI Settings > Subtitle Panel Number to Custom, and assign the bubble subtitle panel to it.)
ehdusjenny
Posts: 11
Joined: Thu Dec 29, 2022 3:58 pm

Re: New Input System enabled, but Bubble Text prefab not working

Post by ehdusjenny »

I followed the how-to and it worked! Thank you very much.
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: New Input System enabled, but Bubble Text prefab not working

Post by Tony Li »

Glad to help!
Post Reply