Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question [SerializeField] InputActionAsset always null on editor startup

Discussion in 'Input System' started by trashburg, Dec 18, 2022.

  1. trashburg

    trashburg

    Joined:
    May 6, 2022
    Posts:
    2
    I've got a fun little wrapper class that has a serialized InputActionAsset field. Unfortunately, every time I start up the editor, whatever I've got saved in there is gone. It works fine in every other context, and appears in asset file correctly, but never actually persists. There's nothing else fancy going on. Just a simple serialized field.

    I've poked around in the docs and searched the forums, but come up empty. Is there something I'm missing here?