docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface MyPlayerControls.IGameplayActions

    Callback interface for the actions in the "gameplay" action map.

    Namespace: DocCodeSamples.Tests
    Assembly: Unity.InputSystem.DocCodeSamples.dll
    Syntax
    public interface MyPlayerControls.IGameplayActions

    Methods

    OnMove(CallbackContext)

    Called when the "move" action is triggered.

    Declaration
    void OnMove(InputAction.CallbackContext context)
    Parameters
    Type Name Description
    InputAction.CallbackContext context

    Context for the triggered action.

    OnUse(CallbackContext)

    Called when the "use" action is triggered.

    Declaration
    void OnUse(InputAction.CallbackContext context)
    Parameters
    Type Name Description
    InputAction.CallbackContext context

    Context for the triggered action.

    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)