Subtitles not rendering after parent object is deactivated

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
dhishii
Posts: 16
Joined: Fri Dec 20, 2019 4:00 am

Subtitles not rendering after parent object is deactivated

Post by dhishii »

Hello,

We are currently using the Wheel Standard Dialogue UI prefab. But we want to have the user toggle it on and off. When the Wheel Standard Dialogue UI gets toggled on and off. The subtitles text event in the inspector show that it's still playing. But it's not being displayed on screen.

However if we take the subtitles outside of the Dialogue Panel. They can be toggled on and off. But the Response buttons in the Dialogue panel no longer work.
Image

Do you know if I am setting up something wrong?
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Subtitles not rendering after parent object is deactivated

Post by Tony Li »

Hi,

The best way to turn off the UI is to disable its Canvas. This keeps all of its animators and content scripts intact so they'll reappear fine when you re-enable the Canvas. It's also the most efficient because it doesn't trigger a UI re-layout like actually reactivating the GameObject would.
dhishii
Posts: 16
Joined: Fri Dec 20, 2019 4:00 am

Re: Subtitles not rendering after parent object is deactivated

Post by dhishii »

Hi Tony,

Thank you for the tip! Sorry, I forgot to mention we are using it in VR and I think it was due to that.
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Subtitles not rendering after parent object is deactivated

Post by Tony Li »

Glad to help!
Post Reply