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

Question Cinemachine with new Input System

Discussion in 'Cinemachine' started by saimiryala07, Feb 8, 2021.

  1. saimiryala07

    saimiryala07

    Joined:
    Feb 16, 2020
    Posts:
    5
    Currently I am using a cinemachine virtual POV camera to work as a first person camera on my player. I am using the Input provider so I can use the new input system.

    Problem: I have a pause button in my game which uses time.timescale to freeze time however even after time is frozen, the camera still moves in the background.
    These are my current settings
    upload_2021-2-8_23-30-4.png
     
  2. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    What version of CM are you using?
    I checked, and for me setting
    Time.timeScale = 0
    freezes input control on my vcams too.
     
  3. saimiryala07

    saimiryala07

    Joined:
    Feb 16, 2020
    Posts:
    5
    I'm using Cinemachine 2.6.3
     
  4. saimiryala07

    saimiryala07

    Joined:
    Feb 16, 2020
    Posts:
    5
    Also the XY-axis input action is referencing a delta mouse.
     
  5. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    I checked and
    Time.timeScale = 0
    freezes input control in CM 2.6.3 too.

    Could you show your Input Action (Parkour/Look)?
     
  6. saimiryala07

    saimiryala07

    Joined:
    Feb 16, 2020
    Posts:
    5
  7. saimiryala07

    saimiryala07

    Joined:
    Feb 16, 2020
    Posts:
    5
    I've tried it with the action type being both pass through and value. Time.timescale freezes the camera when speed is max speed but not when it is input value gain. I would use max speed however the camera then moves up and down in zig zags rather than smoothly
     
  8. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856