P
P
PyChan2021-05-02 14:57:41
Unity
PyChan, 2021-05-02 14:57:41

How to change the camera at the end of the timeline?

There is a timeline that runs at startup. It animates a camera on the rail that flies up to the player. Then, at the end of the timeline, the free look camera should become active. However, this does not happen. I tried to change the priority of the cameras so that the freelook camera has the highest one, but in this case it is also active at the start and there is no approach to the player. What to do in this case? Maybe you can somehow switch cameras through a script?

PS Problem solved! I added a RigidBody and a trigger to the camera, as well as a trigger zone near the character. Initially, the freelook camera is inactive, but it has the highest priority. We add a script that disables the timeline and make the freeLook camera active as soon as the camera crosses the trigger zone. Taaaah!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question