Hiding Game Objects with Unity’s Timeline
Hide player when the game over cutscene is triggered.
Objective: Add an activation track to disable the player when the game over cutscene starts.
Currently when the player is caught we activate the game over cutscene but the player is still present in the scene. The idea is to hide the player to only show the elements from the cutscene.
We have to select the cutscene in the hierarchy, go to the timeline window and create a new activation track.
In the activation track we have to assign the player game object and adjust the duration to only activate the player in the last frame.
And that’s it!!! Now the player is not duplicated in the cutscene.