docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Simulate UI interactions

    You can simulate user interactions with the UI by using methods provided by the PanelSimulator class. These methods include simulating mouse clicks, movements, keyboard input, scrolling, and other common UI interactions.

    Topics Description
    Click on a visual element Simulate a click on a visual element.
    Double-click on a visual element Simulate a double-click on a visual element.
    Type into a text field Simulate typing text into a text field.

    Additional resources

    • Introduction to test fixtures
    In This Article
    Back to top
    Copyright © 2025 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)