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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    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.