Search Unity

Bug Problem with the Deactivation task of the Cinemachine Input Provider(2.8.0 pre-1)

Discussion in 'Cinemachine' started by seoyeon222222, Jun 2, 2021.

  1. seoyeon222222

    seoyeon222222

    Joined:
    Nov 18, 2020
    Posts:
    29
    It is a different issue from the one that was answered as improved in 2.7.3.
    https://forum.unity.com/threads/how-can-i-disable-input-provider.1103872/#post-7111324

    I confirmed that the above problem was solved in 2.8.0 version.


    If the script calls Disable(); of the Input Action Reference's Action Maps,
    the action must not be passed.
    However, the input action registered on the Cinemachine input provider's seems to work even if Disable is called.

    for example
    i have "GameInput.inputactions"
    - it contain 2 Action Maps. Gameplay / Menus
    - Gameplay's Action "Look" can receive Mouse position value -> use in Cinemachine Input Provider

    and in script,
    ...
    GameInput.Gameplay.Disable();
    GameInput.Menus.Enable();

    I think Cinemachine Input Provider should not work
    because Gameplay action maps are disabled. But it is working.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    5,446
    Can you please report this as a bug, with a simple repro project?

    I'm not sure whether the problem is in CinemachineInputProvider, or in the input system itself. If I understand correctly what you are describing, it seems to me that a disabled action should not be triggering the input provider.
     
  3. seoyeon222222

    seoyeon222222

    Joined:
    Nov 18, 2020
    Posts:
    29

    https://github.com/seoyeon01/Unity_Cinemachine_BugReport


    wait...
    I think I know the reason for this issue.

    It seems to have occurred because the InputActionReference used by the Cinemachine InputProvider and the InputActionMap accessed by the script are different objects...
    I was using the object generated by generating c# class in input actions, which seems to have made a difference.

    I wish I could use ActionMap Generated as C# Class InputAciton for InputProvider...
    but anyway. It's not bug.

    i will close this soon. sorry
     
    Last edited: Jun 2, 2021
    Gregoryl likes this.
unityunity