unity-game-engine

Why I can't GENERATED AUTOMATICALLY class from .inputactions in unity


I created a file in path 'Assets/TouchControlssable.inputactions' and added 'Action Maps', 'Actions' and binding properties. Some tutorials said that it will generate a class file like 'TouchControlssable.cs' automatically. But I can't find the class file. How can I fix it?


Solution

  • Make sure you have enabled that option for auto-generating the code in the Inspector of the action asset (single click, not entering the action map editor window)

    -> https://docs.unity3d.com/Packages/com.unity.inputsystem@1.14/manual/ActionAssets.html#type-safe-c-api-generation

    then you should be able to find the according file and types