Files
Test/Library/PackageCache/com.unity.inputsystem@2436e68c60c4/Documentation~/layout-formats.md
T
2026-11-01 23:39:55 +02:00

1.1 KiB

uid
uid
input-system-layout-formats

Layout formats

Add new layouts using the approach that fits how you author and register devices in your project.

You can define layouts in three ways: as C# types, as JSON, or with the layout builder API at runtime. Use C# or JSON when your layout is fixed at build time. Use the layout builder when device structure is discovered dynamically, such as for HID devices.

Topic Description
Add a layout from C# Register a layout using C# classes derived from InputControl or InputDevice.
Add a layout from JSON Register a layout from JSON to store or load definitions separately from your code.
Add a layout using Layout Builder Build a layout at runtime with the layout builder API.

Additional resources