Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Inputs work in Editor but only partially work in build

Discussion in 'Input System' started by two_armed_man, Oct 25, 2022.

  1. two_armed_man

    two_armed_man

    Joined:
    Feb 6, 2020
    Posts:
    11
    My Input System version 1.0.2
    Unity version 2021.1.28f1


    Here is the code being called to display:

    Code (CSharp):
    1. menu.GetComponent<PlayerSetupMenuController>().textDir = input.uiInputModule.move.action.ReadValue<Vector2>().ToString();
    2.  
    3. menu.GetComponent<PlayerSetupMenuController>().textSelect = input.uiInputModule.submit.action.ReadValue<float>().ToString();
    4.  
    5. menu.GetComponent<PlayerSetupMenuController>().textBack = input.uiInputModule.cancel.action.ReadValue<float>().ToString();
    Now, all three of these throw up values in the editor, but when I make a build, the first line doesn't register. Basically, the build is only picking up button presses and ignoring my movement controls. The MoveUI is what I'm using in the menus. That is where I'm having my problem.

     
  2. two_armed_man

    two_armed_man

    Joined:
    Feb 6, 2020
    Posts:
    11
    Resolved by updating Unity so that I could upgrade my input system.