docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Testing

    Write automated input tests that drive the Input System from code without physical devices.

    The Input System includes support for automated input tests. Generated input in tests is treated the same as input from platform backends at runtime, so you can verify gameplay and UI logic without depending on connected hardware. Work through the topics below in order: configure your test assemblies, set up a test fixture, then write tests.

    Topic Description
    Set up test assemblies Configure your project so Input System test code is included in test builds.
    Set up test fixtures Run each test against an isolated Input System instance using InputTestFixture.
    Write tests Add devices and simulate input using the InputTestFixture API.

    Additional resources

    • Actions
    • The Player Input component
    • Layouts
    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)