
unity-master
Comprehensive Unity expertise covering scripting, rendering, networking, modding, and performance for game developers.
- version
- 1.0.4
- GitHub stars
- 62
What it does
- Adds
unity-expertagent and skills for C# scripting, editor tooling, modding, networking, performance, shaders, and UI development - Covers MonoBehaviour lifecycle, coroutines, async patterns, and UI systems including UGUI and UI Toolkit
- Spans multiplayer stacks such as Netcode for GameObjects, Mirror, Photon, and Fish-Net, plus Addressables and Harmony patching for mods
- Designed for Unity developers building gameplay, multiplayer, or moddable games across URP, HDRP, and the Built-in pipeline
Complete Unity game development expertise. Covers C# scripting, MonoBehaviour lifecycle, UI systems (UGUI, UI Toolkit), physics, animation, networking (Netcode, Mirror, Photon), modding support (Addressables, Lua/MoonSharp, Harmony), ECS/DOTS, shader development (ShaderLab, HLSL, Shader Graph), URP/HDRP rendering pipelines, editor scripting, performance optimization, build pipelines, XR/VR/AR, and Unity Gaming Services integration.
Add marketplace
/plugin marketplace add JosiahSiegel/claude-plugin-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install unity-master@claude-plugin-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceUnity C# Scripting Patterns
Overview
Core C# scripting reference for Unity development. Covers MonoBehaviour lifecycle, physics and collision APIs, animation scripting, audio, navigation, common design patterns, serialization, and ECS/DOTS coding patterns.
MonoBehaviour Lifecycle
Execution Order
Awake() -> OnEnable() -> Start() -> FixedUpdate() -> Update() -> LateUpdate() -> OnDisable() -> OnDestroy()
| Method | When Called | Use For |
|---|---|---|
Awake() | Once, when object instantiates (before Start) | Self-initialization, caching references |
OnEnable() | Each time object becomes active | Subscribe to events, reset state |
Start() | Once, before first Update (after all Awake) | Cross-object initialization |
FixedUpdate() | Fixed timestep (default 0.02s) | Physics, Rigidbody movement |
Update() | Every frame | Input, non-physics logic |
LateUpdate() | After all Update calls | Camera follow, post-movement adjustments |
OnDisable() | When object deactivates | Unsubscribe events, save state |
OnDestroy() | When object is destroyed | Final cleanup, resource release |
Key Rules
- Awake runs even on disabled components (but not disabled GameObjects)
- Never rely on Awake/Start order between scripts -- use
[DefaultExecutionOrder(N)]or Script Execution Order settings - Use
OnValidate()for editor-time validation of serialized fields
Coroutines and Async
Coroutines
IEnumerator SpawnWaves(int count, float delay)
{
for (int i = 0; i < count; i++)
{
SpawnEnemy();
yield return new WaitForSeconds(delay);
}
}
// Start: Coroutine handle = StartCoroutine(SpawnWaves(5, 1f));
// Stop: StopCoroutine(handle); or StopAllCoroutines();
| Yield Instruction | Behavior |
|---|---|
yield return null | Wait one frame |
yield return new WaitForSeconds(t) | Wait t seconds (affected by timeScale) |
yield return new WaitForSecondsRealtime(t) | Unscaled time |
yield return new WaitForFixedUpdate() | Wait for next FixedUpdate |
yield return new WaitForEndOfFrame() | After rendering |
yield return new WaitUntil(() => condition) | Wait until predicate is true |
yield return StartCoroutine(other) | Wait for nested coroutine |
Async/Await (Unity 6+ / UniTask)
For Unity 2023+/Unity 6, Awaitable is built-in. For older versions, use UniTask.
async Awaitable LoadLevelAsync(string sceneName)
{
await Awaitable.WaitForSecondsAsync(1f);
var op = SceneManager.LoadSceneAsync(sceneName);
while (!op.isDone)
{
progressBar.value = op.progress;
await Awaitable.NextFrameAsync();
}
}
Events and Delegates
Event Pattern (Recommended)
// Publisher
public class Health : MonoBehaviour
{
public event System.Action<float> OnDamaged; // event keyword prevents external invocation
public event System.Action OnDeath;
public void TakeDamage(float amount)
{
currentHealth -= amount;
OnDamaged?.Invoke(amount);
if (currentHealth <= 0) OnDeath?.Invoke();
}
}
// Subscriber
void OnEnable() => health.OnDamaged += HandleDamage;
void OnDisable() => health.OnDamaged -= HandleDamage;
void HandleDamage(float amount) => /* react */;
ScriptableObject Event Channels
Decouple systems without direct references. Create GameEvent as a ScriptableObject asset, invoke from publishers, and listen from subscribers via GameEventListener MonoBehaviours. See references/design-patterns.md for full implementation.
Physics API Quick Reference
Rigidbody Movement (3D)
| Task | Method | Where |
|---|---|---|
| Continuous force | rb.AddForce(dir * force) | FixedUpdate |
| Instant impulse | rb.AddForce(dir * force, ForceMode.Impulse) | FixedUpdate |
| Direct velocity | rb.linearVelocity = dir * speed | FixedUpdate |
| Kinematic move | rb.MovePosition(target) | FixedUpdate |
| Rotation | rb.MoveRotation(targetRot) | FixedUpdate |
Note: In Unity 6, Rigidbody.velocity is renamed to Rigidbody.linearVelocity.
Raycasting
if (Physics.Raycast(origin, direction, out RaycastHit hit, maxDistance, layerMask))
{
Debug.Log($"Hit {hit.collider.name} at {hit.point}");
}
// Use Physics.RaycastAll or Physics.RaycastNonAlloc for multiple hits
// 2D: Physics2D.Raycast, Physics2D.OverlapCircle, etc.
Collision vs Trigger
| Callback | Requires | Use For |
|---|---|---|
OnCollisionEnter/Stay/Exit | Both have colliders, at least one Rigidbody, isTrigger=false | Physical impacts |
OnTriggerEnter/Stay/Exit | One collider has isTrigger=true, at least one Rigidbody | Zones, pickups, detection |
Always use CompareTag("Enemy") instead of other.tag == "Enemy" (avoids GC allocation).
Animation Scripting
[RequireComponent(typeof(Animator))]
public class CharacterAnimation : MonoBehaviour
{
static readonly int SpeedHash = Animator.StringToHash("Speed");
static readonly int JumpTrigger = Animator.StringToHash("Jump");
Animator _anim;
void Awake() => _anim = GetComponent<Animator>();
void Update()
{
_anim.SetFloat(SpeedHash, moveSpeed);
if (jumped) _anim.SetTrigger(JumpTrigger);
}
}
Cache Animator.StringToHash results as static readonly fields to avoid per-frame hashing. Use Animation Events for gameplay-timed callbacks (footsteps, hit frames). For IK, implement OnAnimatorIK(int layerIndex) with SetIKPosition/Rotation/Weight.
Audio Quick Reference
[RequireComponent(typeof(AudioSource))]
public class SFXPlayer : MonoBehaviour
{
[SerializeField] AudioClip[] clips;
AudioSource _source;
void Awake() => _source = GetComponent<AudioSource>();
public void PlayRandom() => _source.PlayOneShot(clips[Random.Range(0, clips.Length)]);
}
Use AudioSource.PlayOneShot() for overlapping SFX. Use AudioMixer with exposed parameters for volume control. Use snapshots for state transitions (combat vs. exploration).
Serialization
| Type | Serialized | Notes |
|---|---|---|
public fields | Yes | Visible in Inspector |
[SerializeField] private | Yes | Preferred -- maintains encapsulation |
[HideInInspector] public | Yes, hidden | Serialized but not shown |
[NonSerialized] public | No | Opt-out of serialization |
| Properties | No | Never serialized by Unity |
| Dictionaries | No | Use serialized list + rebuild, or Odin/SerializedDictionary |
| Interfaces | No | Use abstract ScriptableObject or SerializeReference |
Use [SerializeReference] for polymorphic serialization of interfaces and abstract types.
Common Design Patterns
| Pattern | When to Use | Approach |
|---|---|---|
| Singleton | Global managers (Audio, GameState) | ScriptableObject-based or lazy MonoBehaviour |
| Observer | Decoupled communication | C# events or SO event channels |
| Command | Input/undo systems | Command interface + history stack |
| State Machine | AI, player states | Enum + switch, or class-based states |
| Object Pool | Bullets, particles, enemies | Queue with pre-instantiation |
| Service Locator | Testable global access | Static registry with interface keys |
For detailed implementations and code examples, see references/design-patterns.md.
ECS/DOTS Quick Reference
| Concept | Role |
|---|---|
| Entity | Lightweight ID (no MonoBehaviour) |
| IComponentData | Pure data struct on entities |
| SystemBase / ISystem | Logic operating on component queries |
| EntityQuery | Filter entities by component sets |
| Jobs (IJobEntity) | Multithreaded systems |
| Burst Compiler | SIMD-optimized native code |
For ECS architecture patterns and migration guidance, see references/design-patterns.md.
Additional Resources
Reference Files
references/design-patterns.md-- Full implementations of singleton, observer, command, state machine, object pool, service locator, and ECS patternsreferences/physics-animation-audio.md-- Detailed physics setup (2D and 3D), advanced animation (blend trees, IK, root motion, Animation Rigging), and audio architecture
From the JosiahSiegel/claude-plugin-marketplace README
Claude Plugin Marketplace
A curated collection of Claude Code plugins for plugin development, context optimization, cloud infrastructure, DevOps automation, and productivity tools.
Quick start
1. Add this marketplace:
/plugin marketplace add JosiahSiegel/claude-plugin-marketplace
2. Install any plugin:
/plugin install <plugin-name>@claude-plugin-marketplace
3. Browse the plugin catalog and install what you need.
Plugin versions are defined in .claude-plugin/marketplace.json and mirrored in each plugin's .claude-plugin/plugin.json. Treat the marketplace manifest as the source for the full, current catalog; the list below highlights commonly used plugins.
Available plugins
Core development tools
- plugin-master (Docs) - Claude Code plugin development with skills, commands, agents, hooks, MCP integration, testing, and marketplace publishing guidance.
- context-master (Docs) - Context management for complex multi-file tasks, planning, delegation, token budgeting, and long-running sessions.
- doc-master (Docs) - Documentation diagnostic, Markdown style, and ADR expert that routes docs to the right form before drafting.
Cloud and infrastructure
- azure-master (Docs) - Azure resource provisioning, AI Foundry, networking, deployment stacks, debugging, and cost optimization.
- azure-to-docker-master (Docs) - Azure-to-Docker migration for local development, Compose generation, emulators, and dev-to-prod parity.
- terraform-master (Docs) - Terraform and OpenTofu guidance for IaC design, state management, imports, providers, validation, and CI/CD.
DevOps and CI/CD
- docker-master (Docs) - Docker build, run, debug, optimization, Compose, container security, networking, and registry workflows.
- ado-master (Docs) - Azure DevOps and Azure Pipelines YAML, identity, security, templates, analytics, and troubleshooting.
- git-master (Docs) - Git and GitHub workflows, history recovery, signed commits, worktrees, sparse checkouts, and repository operations.
Scripting and automation
- bash-master (Docs) - Bash and shell scripting, ShellCheck guidance, POSIX portability, security-first patterns, and cross-platform execution.
- powershell-master (Docs) - PowerShell scripting, modules, CI/CD automation, cloud administration, debugging, and cross-platform patterns.
Testing and quality
- test-master (Docs) - Vitest, Playwright, MSW, unit/integration/E2E testing, debugging, coverage, and CI test setup.
Backend and microservices
- dotnet-microservices-master (Docs) - .NET microservices architecture, Docker, DDD, CQRS, resilience, API gateways, and cloud-native patterns.
Languages and frameworks
- python-master (Docs) - Python, asyncio, typing, FastAPI, testing, packaging, performance, security, and deployment.
- react-master (Docs) - React components, hooks, state management, TypeScript, forms, performance, and testing.
- nextjs-master (Docs) - Next.js App Router, Server Components, Server Actions, caching, middleware, auth, and deployment.
- tailwindcss-master (Docs) - Tailwind CSS configuration, utilities, responsive design, dark mode, performance, and framework integration.
- ffmpeg-master (Docs) - FFmpeg meta-bundle for encoding, effects, platform deployment, Python integrations, and social-video workflows.
Database and data
- ssdt-master (Docs) - SQL Server Data Tools, SqlPackage, DACPAC/BACPAC workflows, schema comparison, and database CI/CD.
- adf-master (Docs) - Azure Data Factory pipeline JSON, activities, linked services, datasets, triggers, expressions, and deployment.
- tsql-master (Docs) - T-SQL query optimization, execution plans, indexing, Query Store, window functions, and Azure SQL tuning.
Platform-specific
- salesforce-master (Docs) - Salesforce API, Apex, Lightning, Flow, data model, integrations, deployment, and security patterns.
- windows-path-master (Docs) - Windows path resolution and Git Bash compatibility for Claude Code file operations.
- cloudflare-master (Docs) - Cloudflare Workers, Pages, AI, storage primitives, Zero Trust, MCP, observability, and CI/CD.
🤝 Contributing
Want to add a plugin to this marketplace? See CONTRIBUTING.md for guidelines.
📊 Marketplace Info
- Owner: Josiah Siegel
- Repository: https://github.com/JosiahSiegel/claude-plugin-marketplace
- License: MIT
- Issues: Report here
📄 License
MIT - See LICENSE for details.
Details
- Marketplace
- JosiahSiegel/claude-plugin-marketplace
- Source
- plugins/unity-master
- Author
- Josiah Siegel
- Category
- Community
- Keywords
- unity, unity3d, game-development, gamedev, csharp, c-sharp, monobehaviour, scriptableobject, prefab, scene, gameobject, component, ugui, ui-toolkit, canvas, physics, rigidbody, collider, raycast, animation, animator, blend-tree, shader, shader-graph, hlsl, shaderlab, urp, hdrp, rendering, lighting, particles, vfx-graph, networking, multiplayer, netcode, mirror, photon, fish-net, modding, mod-support, addressables, asset-bundles, lua, moonsharp, harmony, ecs, dots, burst-compiler, jobs-system, entities, editor-scripting, custom-inspector, editor-window, build-pipeline, performance, profiler, object-pooling, lod, navmesh, pathfinding, terrain, probuilder, audio, audiomixer, coroutine, async-await, unity-testing, assembly-definition, package-manager, unity-gaming-services, firebase, playfab, cicd, gameci, webgl, xr, vr, ar, steam-workshop, scriptable-render-pipeline, 2d, 3d, mobile, console
- Listed since
- Apr 7, 2026
More from JosiahSiegel/claude-plugin-marketplace
All 43- viral-video-masterv2.0.4
- windows-path-masterv1.0.7
- adf-masterv4.3.4
- ado-masterv1.5.9
- azure-masterv1.3.4
- azure-to-docker-masterv1.1.9
- bash-masterv2.0.7
- clerk-auth-masterv1.0.2
- cloudflare-masterv1.1.5
- context-masterv2.2.5
- doc-masterv1.6.1
- docker-masterv1.5.8
- dotnet-microservices-masterv1.0.9
- fal-ai-masterv2.0.5
- ffmpeg-corev1.0.1
- ffmpeg-effectsv1.0.1
- ffmpeg-masterv4.0.0
- ffmpeg-platformsv1.0.0
- ffmpeg-pythonv1.0.1
- ffmpeg-social-videov1.0.1
- git-masterv1.5.6
- kaggle-masterv1.0.2
- ml-masterv0.2.0
- modal-computev1.0.1
Similar to unity-master
More Game Development
unity-developerSkillsickn33/agentic-awesome-skills412 installsUnity 6 game development guide covering C# scripting, URP/HDRP rendering, performance profiling, and cross-platform deployment.
21.-expert-tools-unityPluginscenario-labs/skills4K starsGame engine. A lead and thirteen specialists that drive Unity 6.3 LTS on macOS through batch mode, a live editor, and command-line builds: architecture, gamepla
unityPlugingamedev-skills/awesome-gamedev-agent-skills9.3K starsUnity 6.3 LTS engine skills (C#, Input System, 3D and 2D physics, animation, ScriptableObjects, tilemaps, NavMesh, builds).
AI Game Developer: MCP for Unity, Unreal and GodotMCP serverivanmurzak4.7K starsConnects AI agents to Unity, Unreal, and Godot editors for scene, asset, and code changes.
unity-dev-toolkitPluginDev-GOM/claude-code-marketplace97 starsUnity development toolkit with intelligent scripting, code refactoring, performance optimization, UI Toolkit support, compile error resolution, and testing auto