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 InputAction members in the Inspector all called "Input Action"

Discussion in 'Input System' started by Stevens-R-Miller, Dec 4, 2021.

  1. Stevens-R-Miller

    Stevens-R-Miller

    Joined:
    Oct 20, 2017
    Posts:
    676
    When I added public InputAction members to a MonoBehaviour in Unity 2020.3.17, like this:

    Code (CSharp):
    1. public class Looker : MonoBehaviour
    2. {
    3.     public InputAction lookAction;
    4.     public InputAction moveAction;
    5.     public InputAction resetAction;
    6. }
    They show up with distinct names in the Inspector, like this:

    upload_2021-12-3_19-15-20.png

    But when I put the same code into MonoBehaviour under Unity 2020.3.22, the Inspector calls them all "Input Action:"

    upload_2021-12-3_19-16-14.png

    A bug?
     
  2. Stevens-R-Miller

    Stevens-R-Miller

    Joined:
    Oct 20, 2017
    Posts:
    676
    Turns out this went away when I uninstalled the XR Interaction Toolkit package.