/mas-3d-games:unityfrom mas-3d-games
Automates Unity editor and runtime workflows including CI builds, Addressables content builds, batch mode operations, and editor scripting with C#. Useful for game developers managing automated build pipelines and asset workflows.
Ships in mas-3d-games. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Unity 6000.x / 2022 LTS+ combines Scenes, Prefabs, ScriptableObjects, URP/HDRP/Built-in RP, and Editor-only automation via -batchmode -quit -executeMethod. Claude acts as a Principal Unity Engineer: CI builds, Addressables, deterministic player settings, and Editor/runtime assembly separation.
┌─────────────────────────────────────────────────────────────┐
│ Editor (UnityEditor) → -executeMethod / BuildPipeline │
│ Player (runtime) → Mono / IL2CPP │
│ CI: one process per buildTarget; -activeBuildProfile │
└─────────────────────────────────────────────────────────────┘
Version pin: Unity Editor version in ProjectSettings/ProjectVersion.txt — CI must use the same Hub editor (e.g. 6000.0.xf1). Command-line reference.
Use when: automated builds, asset validation, playmode tests, Addressables content builds, batch import settings.
Do not use when: Unreal-specific Nanite workflows; server-side Unity without licensing review for headless batch (Unity licensing applies to build machines).
#if UNITY_EDITOR, Assets/**/Editor/, Editor asmdefs — never reference UnityEditor in runtime.public static void X() only; EditorApplication.Exit(code) on failure; no modal dialogs in batchmode.-buildTarget StandaloneWindows64 or -activeBuildProfile "Assets/.../Windows.asset" — multi-target requires separate processes.Application.targetFrameRate side effects in build scripts; use BuildOptions.StrictMode where available; log Application.unityVersion.-logFile path; parse for Scripts have compiler errors before blaming runtime.Assets/Editor/CiBuild.cs:
#if UNITY_EDITOR
using System.IO;
using UnityEditor;
using UnityEditor.Build.Reporting;
using UnityEngine;
public static class CiBuild
{
public static void BuildWindowsCI()
{
var ok = BuildInternal(BuildTarget.StandaloneWindows64, "Builds/Win/Game.exe");
EditorApplication.Exit(ok ? 0 : 1);
}
static bool BuildInternal(BuildTarget target, string location)
{
Directory.CreateDirectory(Path.GetDirectoryName(location)!);
var report = BuildPipeline.BuildPlayer(new BuildPlayerOptions
{
scenes = EditorBuildSettingsScene.GetActiveSceneList(EditorBuildSettings.scenes),
locationPathName = location,
target = target,
options = BuildOptions.CompressWithLz4HC
});
Debug.Log($"Build {report.summary.result} size={report.summary.totalSize}");
return report.summary.result == BuildResult.Succeeded;
}
}
#endif
& "C:\Program Files\Unity\Hub\Editor\6000.0.42f1\Editor\Unity.exe" `
-batchmode -nographics -quit `
-projectPath "$PWD" `
-buildTarget StandaloneWindows64 `
-executeMethod CiBuild.BuildWindowsCI `
-logFile "$PWD\Logs\ci-build.log"
Use AddressableAssetSettings.BuildPlayerContent() from an Editor static method after -executeMethod imports complete. Fail CI if catalog hash changes without intentional bump (store catalog.json hash artifact).
| Symptom | Cause | Fix |
|---|---|---|
| Hang after open | Modal dialog / missing -quit | -batchmode -quit; guard DisplayDialog |
| Wrong platform shaders | Missing -buildTarget / profile | Set -activeBuildProfile |
UnityEditor in player | Editor script in runtime asmdef | Editor folder + asmdef platforms |
| Non-deterministic lighting | Different RP or color space | Serialize Quality/Graphics settings |
| License / activation | Batch on fresh VM | Unity license activation docs for CI |
Reddit/forum pattern: parallel Unity instances on same project path fail — one lock per -projectPath.
MANDATORY: Static
-executeMethodin Editor assembly; explicit exit codes;-logFile; pin Editor version; separate CI job per build target.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub alivirgo/major-ai-skills --plugin mas-3d-games8 skills in this plugin
/blenderAutomate Blender scenes with the bpy Python API, build Geometry Nodes workflows, configure Cycles or EEVEE renders, and troubleshoot headless batch jobs./cinema-4dScript Cinema 4D scenes with c4dpy and the Maxon API, wire MoGraph/Fields systems, and debug Redshift GPU renders, AOVs, and headless Commandline farm jobs agents routinely miss./godotBuild Godot 4 scenes and GDScript workflows, inspect physics behavior, and configure headless project exports./houdiniAutomate Houdini with VEX and hou/hython, cook PDG/TOPs graphs, tune Vellum/FLIP/Pyro solvers, and debug Solaris/Karma XPU renders agents routinely miss./substance-painterAutomate Substance 3D Painter texturing with the Python API, bake mesh maps safely, pack PBR exports for Unreal/Unity, and debug UDIM, TDR, and color-space failures agents routinely miss./unreal-engineBuild Unreal Engine workflows with Blueprints, C++, editor Python, and Unreal Automation Tool build or packaging jobs.2 plugins in one repository ship this exact skill · first indexed Oct 7, 2026