Hi, could someone help me configure a touch button through an on-screen widget to chat with a metahuman?
I’m new to the topic and if you can help me with an image I would really appreciate it.
Hello @Javier_Casanova,
Welcome to the Convai Developer Forum!
Follow the steps below to set up a touch button:
- Navigate to
/All/EngineData/Plugins/ConvAI/Widgets
and create a button insideChat_WB
. - In the button’s properties, bind the Pressed and Released events.
- Connect these events in Convai Base Player Blueprint, replacing the existing T key press with your new button’s events.
This setup allows the button to function similarly to the keyboard input. If you’re new to Unreal Engine, I recommend checking out Unreal Engine forums or tutorials for more guidance on working with widgets and blueprints.
Let me know if you need further clarification!
- Navigate to
/All/EngineData/Plugins/ConvAI/Widgets
and create a button insideChat_WB
.
*This is OK in design, touch button name is voicebuttonwidgetf *
- In the button’s properties, bind the Pressed and Released events.
In addition to adding OnReleased and Onpressed to the touch button event graph… do I need to add something else that triggers starting and ending chat?*
- Connect these events in Convai Base Player Blueprint, replacing the existing T key press with your new button’s events.
This not understand
For this step I also need help since I don’t know how to connect the “Voicebuttonwidget” widget and its on pressed and on relased events with Convai Base Player Blueprint
I’m an amateur in graphic programming, but I’m trying to learn.
I still can’t get it to work
Which part are you having trouble with? Could you share more details on what’s not working?
Yes, I Yes, I am trying to program a touch button that works for a touch screen. For example, an interactive totem
That sounds great!
Now simply connect Start Talking from Convai Base Player to your button’s Pressed event and Stop Talking to the Released event.
Now how can I connect them? One is in ConvaiBasePLayer and the other is in the widget’s Graph.
To set up a touch button,
- Go to Plugins/ConvAI/Widgets/ and open Chat_WB. Create a button as shown in the screenshot below.
-
Then, go to Plugins/ConvAI/Core/ and open ConvaiBasePlayer.
-
From the ChatWB reference, get the reference to the button you created (e.g., Get Btn Mic). Use AssignOnPressed and AssignOnReleased events to link them, as shown in the screenshot. This will make your button functional.
I hope this is clear and helpful. If you need further assistance, feel free to ask!
Note: Since these changes are made in the plugin files, they will affect any new or existing projects using Convai Plugin.
Thank you very much K3! This works perfectly
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.