Hey Chris,
I've run into a strange issue I'm hoping you can assist with where clicking outside the game window and then back in the game window causes a timeline action to skip to the next action in a cutscene.
For example, in this action list I'm playing a timeline and waiting for it to finish, then switching to a different camera, running a choice action, and then starting a conversation.

This works fine and this method is used across my entire game.
However, I've recently found that if I click outside of the game window (either in the editor or in a build) and the game state pauses, when reselecting the game window the action list skips to the next action in the list.
In the above example, the timeline will continue playing but it continues on through the actionlist- so the camera switches and the conversation starts while the timeline is still playing.
The issue doesn't occur at any other time- and the cutscenes are also not set to skippable.
Any help would be appreciated as one of my platforms is WebGL and this is creating huge problems if the user clicks outside of the browser tab.
(Unity version 2021.1.6f1, AC version 1.73.8)
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
As a quick fix, enabling Run in Background from the project settings prevents this issue, but it isn't ideal...
Thanks for the bug report - I'll attempt a recreation. Can you share a screenshot of the Playable Director component the Timeline is playing from?
Is this limited to WebGL, or does it occur in other build platforms too?
Thanks Chris.
The Playable Director components are pretty standard- a couple in each scene depending on what I'm doing with them, and I don't assign a timeline directly from the cutscene:
The issue occurs in the editor and various builds (Windows, WebGL). It seems like it's registering the timeline as finished, even if 'wait until finish' is selected, as soon as you click back into the game window.
Recreated, thanks. I will PM you a fix to test.