Search Issue Tracker

Fixed in 1.3.0

Votes

1

Found in [Package]

1.1.0-pre.5

Issue ID

1367240

Regression

Yes

Input Action field is not labeled by variable name when shown in the Inspector as a SerializedField

Package: Input System

-

How to reproduce:
1. Open the user's attached project
2. Open scene Scenes/SampleScene
3. In the Hierarchy window, select the GameObject "Cube"
4. In the Inspector view, observe the three Input Action labels under the component "Controller (Script)"

Expected result: the Input Actions are labeled according to their variable names (Steering Action, Brake Action, Throttle Action)
Actual result: all three different Actions are labeled as "Input Action"

Reproducible with: 1.1.0-pre.5, 1.1.1 (2019.4.31f1, 2020.3.20f1, 2021.1.25f1, 2021.2.0b15, 2022.1.0a12)
Not reproducible with: 1.1.0-preview.3 (2019.4.31f1, 2020.3.20f1, 2021.1.25f1, 2021.2.0b15, 2022.1.0a12)

  1. Resolution Note (fix version 1.3.0):

    Fixed in Input System 1.3.0 available for 2019.4 and up

Comments (3)

  1. Anthony114

    Apr 07, 2022 19:27

    still nothing? same issue

  2. Zarenityx

    Mar 19, 2022 03:57

    This problem still exists if the InputAction is inside a serialized non-monobehaviour class.
    For example:

    public class MyScript : MonoBehaviour
    {
    [SerializeField] private InputAction actionWithWorkingName; //This works
    [SerializeField] private MyInputClass nonMonobehaviour; //This doesnt work
    }

    [System.Serializable]
    public class MyInputClass
    {
    [SerializeField] private InputAction brokenName; //This just shows as "InputAction"
    }

  3. pitchblende

    Oct 10, 2021 21:43

    Watching.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.