Search Unity

Question Changing the properties of different components by the same values

Discussion in 'Animation' started by Fitbie, Apr 7, 2023.

  1. Fitbie

    Fitbie

    Joined:
    Aug 17, 2021
    Posts:
    66
    Hi!
    In my game, there are several scenes between which the player moves. Each scene has a camera. When I do some actions, my cameras play a zoom in zoom out animation. The problem is that some scenes are different in size, which means the cameras have different orthographic sizes. But animation is always reducing and increasing 0.3 units, that is, for the animation need only start and end values.
    How do I do in this situation not to create a lot of animators? I assume that the animation can be done through code, can anyone suggest an idea?
    Thank you!