docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Override layout definitions

    You can non-destructively change aspects of an existing layout using layout overrides. You can call InputSystem.RegisterLayoutOverride to register a layout as an override of its base layout. The system then adds any property present in the override to the base layout or to existing properties.

    // Add an extra Control to the "Mouse" layout
    const string json = @"
        {
            ""name"" : ""Overrides"",
            ""extend"" : ""Mouse"",
            ""controls"" : [
                { ""name"" : ""extraControl"", ""layout"" : ""Button"" }
            ]
        }
    ";
    
    InputSystem.RegisterLayoutOverride(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)