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

Bug Could not find active control after binding resolution when calling SetActive on gameobject

Discussion in 'Input System' started by erdostamasa, Jun 19, 2023.

  1. erdostamasa

    erdostamasa

    Joined:
    Mar 28, 2020
    Posts:
    32
    I have an On-Screen Stick that controls player movement. If I use a script to SetActive this joystick gameobject to false then true, I get this error when touching the joystick:

    Could not find active control after binding resolution
    UnityEngine.InputSystem.OnScreen.OnScreenControl:OnEnable ()

    The error is in InputActionState
    upload_2023-6-20_0-33-34.png

    It's really annoying because I need to hide the joystick when the player doesn't use it and I can't.
    Why is this happening?

    Details:
    Unity 2021.3.26f1
    Inputy System 1.5.1
     
  2. erdostamasa

    erdostamasa

    Joined:
    Mar 28, 2020
    Posts:
    32
  3. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    1,592
    did you ever solve this? seeing same error