Search Unity

Is there an easy way to add an AxisState to a MixingCamera?

Discussion in 'Cinemachine' started by StarFluke, Feb 15, 2018.

  1. StarFluke

    StarFluke

    Joined:
    Jan 19, 2013
    Posts:
    39
    The MixingCamera is great!
    I have created a wrapper for an AxisState to watch an input to control a MixingCamera. It was a bit of boilerplate work. Is there a simpler way to add an AxisState to any component not currently setup for one?

    Thanks
     
    Adam_Myhill likes this.
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    Sounds like you're doing it the right way.
     
  3. StarFluke

    StarFluke

    Joined:
    Jan 19, 2013
    Posts:
    39
    Thanks! Zoom works perfectly when controlled by MixingCamera! It took me a bit to realize that all I had to do was make AxisState public and your Inspector drawers handled it all from there!
    Awesome Unity Package guys!:)