Question by
Gerfier · May 01, 2017 at 03:11 PM ·
animationscene-loadingscene-switching
How to load a new scene after animation ends?
Ok, so I am working in a shooting game and I am almost done. The final part is adding animations. I created a clip for animation once I beat the level and the 'Victory" text gets displayed on the screen. What I want is my animation to automatically start once the text Victory appears and then once is over the next level starts which is another scene.
Right now all scenes (levels) start right after the previous one gets beaten.
Comment
Answer by Determined · May 01, 2017 at 03:50 PM
You can add Animation event in the animation clip and call a function to change the scene. Have a look at this link: https://docs.unity3d.com/Manual/animeditor-AnimationEvents.html