Page 1 of 1

Subtitles not rendering after parent object is deactivated

Posted: Tue Apr 28, 2020 6:52 am
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?

Re: Subtitles not rendering after parent object is deactivated

Posted: Tue Apr 28, 2020 8:45 am
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.

Re: Subtitles not rendering after parent object is deactivated

Posted: Wed May 13, 2020 12:22 am
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.

Re: Subtitles not rendering after parent object is deactivated

Posted: Wed May 13, 2020 11:22 am
by Tony Li
Glad to help!