Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

FreeLook with third-party input handler plugin

Discussion in 'Cinemachine' started by kdgalla, Mar 18, 2019.

  1. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,355
    I tried the Cinemachine demo scene "free look collider" and this setup seems to work better than my homemade camera controller script so I'd like to try creating a similar set-up in my project. I'm using InControl to handle input in my project, though, where as the CinemaFreeLook component detects mouse axis input with native Unity input system. Is there a built-in way to wire-up an alternative input system (such as InControl or Rewired) to Cinemachine?
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
  3. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,355
    Ah cool. That's pretty easy! InControl's axis function has a different signature but all I would need to do is write a simple wrapper function and that should do the trick.
     
  4. XianGrim

    XianGrim

    Joined:
    Jan 14, 2014
    Posts:
    7
    @kdgalla, any chance you can mention where and how you implemented the wrapper for this to work?
     
  5. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
  6. XianGrim

    XianGrim

    Joined:
    Jan 14, 2014
    Posts:
    7
    Wow. That is unbelievable easy to use! Thank you so much!
     
    Gregoryl likes this.