logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityPlayerInputActionBindingFactory

    Factory for creating Unity-specific player input action bindings.
    Implements the abstract factory pattern to create concrete UnityPlayerInputActionBinding instances that connect InputActions to callback handlers.
    Provides type-safe creation of action-to-handler bindings for the Unity Input System.

    Inheritance
    object
    UnityPlayerInputActionBindingFactory
    Implements
    IPlayerInputActionBindingFactory<InputAction, CallbackContext>
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.InputGateway.Infrastructure.Factories
    Assembly: Serenity.UnityPlayerInput.Infrastructure.dll
    Syntax
    public class UnityPlayerInputActionBindingFactory : IPlayerInputActionBindingFactory<InputAction, InputAction.CallbackContext>

    Constructors

    UnityPlayerInputActionBindingFactory()

    Declaration
    public UnityPlayerInputActionBindingFactory()

    Methods

    Create(InputAction, Action<CallbackContext>)

    Creates a new Unity-specific input action binding.
    Connects an InputAction to its callback handler through the UnityPlayerInputActionBinding implementation.

    Declaration
    public IPlayerInputActionBinding<InputAction, InputAction.CallbackContext> Create(InputAction action, Action<InputAction.CallbackContext> handler)
    Parameters
    Type Name Description
    InputAction action

    The Unity InputAction to bind

    Action<InputAction.CallbackContext> handler

    The callback handler to invoke when the action is triggered

    Returns
    Type Description
    IPlayerInputActionBinding<InputAction, CallbackContext>

    A configured action binding that manages the action-handler relationship

    Implements

    IPlayerInputActionBindingFactory<TAction, TContext>
    In this article
    © 2026 Serenity. All Rights Reserved