Trying to access emotions sent from server in Unity

I’m trying to access the emotional response sent by the server to Unity so that I can use it to control animations based on the emotional state of the NPC. However, I’m unsure of how to access this data.
If anyone has any insights on this, it would be greatly appreciated.

1 Like

Hello @lukas_ny,

Welcome to the Convai Developer Forum!

Thanks for your question!

You can refer to our documentation here:
Unity Plugin – Character Emotion

Hello @K3,
thank you for the fast reply :slight_smile:
But I’m actually trying to circumvent using the lip-sync script as I’m already using SALSA-lipsync. So I was wondering if there was a way to just directly access the emotional data as seen in the console?
image

You can access the emotional data directly from the ProcessCharacterEmotion method located in:

Assets/Convai/Scripts/Runtime/Core/ConvaiGRPCAPI.cs

1 Like