Search Unity

Question Adding chance to a state driven camera

Discussion in 'Cinemachine' started by remylis, Sep 27, 2022.

  1. remylis

    remylis

    Joined:
    Jan 12, 2022
    Posts:
    1
    Hi guys,

    I was wondering if it's possible to add chance to the state driven cameras. For example, giving either "this" or "that" camera when doing the same animation. Otherwise it would have too much repetition.

    Cheers!
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,719
    Unfortunately there is no simple built-in way to do this with StateDrivenCamera. One possible way to accomplish this would be to add substates to the state in question, assign a camera to each one, and choose it randomly in the state machine.
     
    gaborkb likes this.