# Trying to access emotions sent from server in Unity

**URL:** <https://forum.convai.com/t/trying-to-access-emotions-sent-from-server-in-unity/3444>\
**Category:** Unity SDK\
**Tags:** state-of-mind, question, unity\
**Created:** [April 1, 2025, 10:02am UTC](https://forum.convai.com/t/trying-to-access-emotions-sent-from-server-in-unity/3444 "2025-04-01T10:02:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukas\_ny](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/lukas_ny/32/3676_2.png) [@lukas\_ny](https://forum.convai.com/u/lukas_ny)\
**Post date:** [April 1, 2025, 10:02am UTC](https://forum.convai.com/t/trying-to-access-emotions-sent-from-server-in-unity/3444/1 "2025-04-01T10:02:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [April 1, 2025, 10:09am UTC](https://forum.convai.com/t/trying-to-access-emotions-sent-from-server-in-unity/3444/2 "2025-04-01T10:09:41Z")

</div>

Hello @lukas_ny,

**Welcome to the Convai Developer Forum!**

Thanks for your question!

You can refer to our documentation here:  
[Unity Plugin – Character Emotion](https://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/utilities/character-emotion)

---

<div class="post-metadata">

**Author:** ![lukas\_ny](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/lukas_ny/32/3676_2.png) [@lukas\_ny](https://forum.convai.com/u/lukas_ny)\
**Post date:** [April 1, 2025, 10:17am UTC](https://forum.convai.com/t/trying-to-access-emotions-sent-from-server-in-unity/3444/3 "2025-04-01T10:17:52Z")

</div>

Hello @K3,  
thank you for the fast reply 🙂  
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](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/8/8e8f517ea6e5d40e78418712482a667424709c07.png)

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [April 1, 2025, 11:37am UTC](https://forum.convai.com/t/trying-to-access-emotions-sent-from-server-in-unity/3444/4 "2025-04-01T11:37:51Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/1X/e60ef96aa7334c5ccf6682f6c6dbc20fcfa96b49.png) [@system](https://forum.convai.com/u/system)\
**Post date:** [May 1, 2025, 11:38am UTC](https://forum.convai.com/t/trying-to-access-emotions-sent-from-server-in-unity/3444/5 "2025-05-01T11:38:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
