mcpField
U
unity-builder-pattern

unity-builder-pattern

github.com/muharremtozanDevelopment1753 installsUpdated 22w ago
Repository

About unity-builder-pattern

unity-builder-pattern is a minimal C# builder skill for constructing Unity GameObjects. It provides a fluent API for setting up objects and adding components.

Key features

  1. 01Chainable setup methods
  2. 02Generic IBuilder interface
  3. 03GameObject component addition

Use cases

  1. 01Build a GameObject with a readable setup chain
  2. 02Add components while constructing an object

Install

Copy the command and run it in a terminal.

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

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

Bundled filesassets/code/Builder.cs.txtreferences/guide.md

Details

From the project README

Unity Builder Pattern

Minimal builder pattern for GameObject construction.

Core Features

  1. Fluent API: Chainable methods for readable setup
  2. Generic Interface: IBuilder<T> for any object type
  3. Component Management: Easy component addition

Core Files (1 file)

  • Builder.cs.txt: Complete builder pattern (interface + fluent implementation)

Usage

var player = new GameObjectBuilder( "Player" )
    .WithPosition( Vector3.zero )
    .AddComponent<Rigidbody>()
    .Build();

Comments

Markdown supported