There's more...

If you create a prefab out of an animated camera, you can instantiate it to play a cutscene. Remember to set the cutscene camera's Depth to be greater than the in-game camera's. This way, simply instantiating the cutscene camera prefab will automatically play the cutscene. All you need to do is to destroy the instantiated game object after the animation ends. You can do so with an Animation Event associated with a function that will destroy the object (you need to use a script for that).

You should also remember to disable the Audio Listener component in the in-game camera when you instantiate the cutscene camera. After the cutscene is finished, make sure to re-enable the Audio Listener component again.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.36.231