mcpField
U
unity-interaction

unity-interaction

github.com/muharremtozanDevelopment1757 installsUpdated 22w ago
Repository

About unity-interaction

unity-interaction is a minimal interaction pattern for Unity, intended for projects that need generic object interaction. It uses interfaces and raycasting, supports primary and alternative actions, and consists of two core files without external dependencies.

Key features

  1. 01Interface-based interactables
  2. 02Primary and alternative actions
  3. 03Raycast target detection
  4. 04Self-contained implementation

Use cases

  1. 01Adding interactions to varied Unity objects
  2. 02Selecting targets based on player facing
  3. 03Handling primary and alternative input actions

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/muharremtozan/unity-agent-skills --skill unity-interaction

After installing, type/unity-interactionin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

assets/code/
IInteractable.cs.txt
InteractionController.cs.txt
assets/docs/
Checklist.md.txt
references/
guide.md

Details

From the project README

Unity Interaction System

Minimal, generic interaction pattern using interfaces and raycasting.

Core Features

  1. Interface-Based: IInteractable works on any object type
  2. Dual Actions: Primary (E) and Alternative (F) interactions
  3. Raycast Detection: Automatic target selection based on player facing
  4. Zero Dependencies: Self-contained, no external skill requirements

Core Files (2 files only)

  • IInteractable.cs.txt: Core interfaces for interactables and interactors
  • InteractionController.cs.txt: Raycast-based detection and input handling

Usage

See guide.md for implementation examples.

Comments

Markdown supported