docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Get started with the Player Input component

    To get started using the Player Input component, use the following steps:

    1. Add a Player Input component to a GameObject. This would usually be the GameObject that represents the player in your game.
    2. Assign your action asset to the Actions field. This is usually the default project-wide action asset named "InputSystem_Actions" Currently, when using project-wide actions all the action maps are enabled by default. It is advisible to manually disable them and manually enable the default map that Player Input during Start().
    3. Set up Action responses, by selecting a Behavior type from the Behavior menu. The Behavior type you select affects how you should implement the methods that handle your Action responses. Refer to the notification behaviors section further down for details.

      PlayerInput Notification Behavior

    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)