Chat UI text not reappearing

Original Discord Post by newbietechbro | 2024-08-23 14:14:25

In my app, when I unload a convai AR scene and reload it, when the character starts talking in the reloaded scene, the chat UI text/transcript doesn’t appear. The only way I can get it to reappear is if I speak into the microphone to trigger the transcript again. Is this a bug?

Reply by newbietechbro | 2024-08-23 17:34:12

^This only occurs for the chatboxui, but not the other two

Reply by k3kalinix | 2024-08-23 18:35:38

Could you please share a video?

Reply by newbietechbro | 2024-08-24 14:33:55

When the scene is loaded again, the npc starts talking but the chat box ui text doesn’t reappear. But this doesn’t happen for the other chat UI’s

Attachments:

Reply by k3kalinix | 2024-08-25 10:04:48

<@&1163218322200989806> could you please check?

Reply by starboy_24 | 2024-08-25 10:36:23

If it doesn’t happen with other UIs then might be a bug. I will test and tell you by tomorrow.

Reply by newbietechbro | 2024-08-26 13:41:37

<@679221735458996224> Sure thanks!

Reply by raghuvanshagarwal | 2024-08-26 16:24:31

Hi <@796390213164859422> let me take a look into it, meanwhile can you tell us the version of the SDK you are using

Reply by newbietechbro | 2024-08-26 18:46:51

<@433610960725344267> I believe its the current version 3.0.1

Reply by raghuvanshagarwal | 2024-08-27 06:06:39

Please modify Initialize Function inside ChatBoxUI.cs file and see if this solves the issue

/// <summary>
        ///     Initializes the chat UI with the specified prefab.
        /// </summary>
        /// <param name="uiPrefab">The UI prefab to instantiate.</param>
        public override void Initialize(GameObject uiPrefab)
        {
            //existing code
            _isFirstMessage = true;
            _currentSpeaker = Speaker.Player;
        }

<@796390213164859422>

Reply by newbietechbro | 2024-08-27 10:08:10

This solves it! thank you!

Reply by k3kalinix | 2024-08-27 10:12:15

Perfect!

This conversation happened on the Convai Discord Server, so this post will be closed.