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.
Implements
Inherited Members
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 |