docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Configure input from JSON

    You can load actions as JSON in the form of a set of action maps or as a full InputActionAsset. This also works at runtime in the Player.

    // Load a set of action maps from JSON.
    var maps = InputActionMap.FromJson(json);
    
    // Load an entire InputActionAsset from JSON.
    var asset = InputActionAsset.FromJson(json);
    
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)