unity-input-system

Unity New Input System configuration skill for action maps, device bindings, control schemes, and cross-platform input handling.

509 stars

Best use case

unity-input-system is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Unity New Input System configuration skill for action maps, device bindings, control schemes, and cross-platform input handling.

Teams using unity-input-system should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/unity-input-system/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/game-development/skills/unity-input-system/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/unity-input-system/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How unity-input-system Compares

Feature / Agentunity-input-systemStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Unity New Input System configuration skill for action maps, device bindings, control schemes, and cross-platform input handling.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Unity Input System Skill

New Input System configuration and implementation for Unity.

## Overview

This skill provides capabilities for implementing Unity's New Input System, including action maps, device support, and cross-platform input handling.

## Capabilities

### Action Configuration
- Create Input Action Assets
- Define action maps and actions
- Configure bindings and interactions
- Set up action types (value, button, passthrough)

### Device Support
- Configure gamepad support
- Implement keyboard/mouse handling
- Set up touch controls
- Handle XR controllers

### Control Schemes
- Define control schemes
- Implement scheme switching
- Support local multiplayer
- Configure device requirements

### Runtime Handling
- Generate C# input classes
- Handle input events
- Implement rebinding UI
- Manage device changes

## Prerequisites

- Unity 2021.3+
- Input System package installed

## Usage Patterns

### Input Actions Asset

```csharp
// Generated PlayerInput class usage
public class PlayerController : MonoBehaviour
{
    private PlayerInputActions inputActions;

    void Awake()
    {
        inputActions = new PlayerInputActions();
    }

    void OnEnable()
    {
        inputActions.Gameplay.Enable();
        inputActions.Gameplay.Jump.performed += OnJump;
        inputActions.Gameplay.Move.performed += OnMove;
    }

    void OnDisable()
    {
        inputActions.Gameplay.Disable();
    }

    void OnJump(InputAction.CallbackContext ctx)
    {
        // Handle jump
    }

    void OnMove(InputAction.CallbackContext ctx)
    {
        Vector2 movement = ctx.ReadValue<Vector2>();
    }
}
```

### Rebinding

```csharp
public void StartRebinding(InputAction action)
{
    action.PerformInteractiveRebinding()
        .WithControlsExcluding("Mouse")
        .OnComplete(operation => {
            operation.Dispose();
            SaveBindings();
        })
        .Start();
}
```

## Best Practices

1. Use Input Action Assets over direct polling
2. Implement rebinding for accessibility
3. Test all supported devices
4. Handle device disconnection gracefully
5. Save custom bindings to PlayerPrefs

## References

- [Input System Documentation](https://docs.unity3d.com/Packages/com.unity.inputsystem@latest)

Related Skills

design-system-validator

509
from a5c-ai/babysitter

Validate design system compliance in code and detect token usage violations

Safety System Skill

509
from a5c-ai/babysitter

Robot safety system design and validation for industrial and collaborative robots

module-systems

509
from a5c-ai/babysitter

Expert skill for designing module systems including resolution algorithms, import/export mechanisms, visibility control, namespace management, and cyclic dependency handling.

macro-systems

509
from a5c-ai/babysitter

Expert skill for designing and implementing macro systems including hygienic macros, procedural macros, and macro expansion. Supports pattern-based macros, quasi-quotation, and hygiene management.

effect-systems

509
from a5c-ai/babysitter

Expert skill for designing and implementing algebraic effect systems including effect annotation, inference, handlers, polymorphism, and row-based effect typing.

unity-vfx-graph

509
from a5c-ai/babysitter

Unity Visual Effect Graph skill for GPU particle systems, procedural effects, and high-performance visual effects.

unity-urp

509
from a5c-ai/babysitter

Universal Render Pipeline configuration skill for Unity, including custom shaders, lighting setup, post-processing effects, and render feature development.

unity-ui-toolkit

509
from a5c-ai/babysitter

Unity UI Toolkit skill for runtime UI development, USS styling, UXML templates, and custom visual elements.

unity-shader-graph

509
from a5c-ai/babysitter

Unity Shader Graph skill for visual shader authoring, custom nodes, and material effects.

unity-profiler

509
from a5c-ai/babysitter

Unity Profiler skill for performance analysis, frame debugging, memory profiling, and optimization workflows.

unity-physics

509
from a5c-ai/babysitter

Unity Physics skill for collision detection, rigidbody dynamics, raycasting, and physics configuration.

unity-netcode

509
from a5c-ai/babysitter

Unity Netcode for GameObjects skill for multiplayer networking, RPCs, state synchronization, and server-authoritative gameplay.