Builds and ships Unity 6.3 LTS players: Build Profiles, IL2CPP vs Mono, managed stripping with link.xml, scripted BuildPlayer, Addressables and CI or headless builds. Use when automating a Unity build or MissingMethodException appears only in the player. Not for a build that is too big (`unity-build-size`) or store uploads (`steam-publish`, `itch-publish`).
Ships in gamedev. 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.
Configure, script, and automate Unity 6.3 LTS player builds: scenes, platform target, scripting backend, stripping, and headless/CI builds. Targets Unity 6.3 LTS (6000.3).
BuildPipeline.BuildPlayer, or wiring a CI/headless build.ProjectSettings/EditorBuildSettings.asset or a CI build script.When not to use: authoring a CI service config end-to-end is DevOps; this skill covers
the Unity-side build API and settings. Console/platform certification specifics are
platform-NDA territory. Storefront submission → steam-publish / itch-publish. A build, APK
or Web build that is too large (assets, compression, per-platform size settings) →
unity-build-size, which sends stripping work back here.
EditorBuildSettings.scenes). Only listed, enabled scenes ship; scene 0 is the start scene.
A Build Profile asset can carry its own Scene List (Add Settings → Scene List); when it
does, that profile builds its list, not the global one.BuildTarget / EditorUserBuildSettings). In batch mode, pass -buildTarget <name> on
the command line instead: SwitchActiveBuildTarget is not available there.link.xml. Set Quality Settings per platform.BuildPipeline.BuildPlayer(BuildPlayerOptions) and inspect the
returned BuildReport — a non-Succeeded result must fail your pipeline.-batchmode -quit -executeMethod, and check the exit code.using UnityEditor;
using UnityEditor.Build.Reporting;
using UnityEngine;
public static class BuildScript
{
[MenuItem("Build/Windows x64")]
public static void BuildWindows()
{
var options = new BuildPlayerOptions
{
scenes = new[] { "Assets/Scenes/Main.unity", "Assets/Scenes/Level1.unity" },
locationPathName = "Builds/Windows/Game.exe",
target = BuildTarget.StandaloneWindows64,
options = BuildOptions.None, // add BuildOptions.Development for a dev build
};
BuildReport report = BuildPipeline.BuildPlayer(options);
BuildSummary summary = report.summary;
if (summary.result != BuildResult.Succeeded)
throw new System.Exception($"Build failed: {summary.totalErrors} errors");
Debug.Log($"Build OK: {summary.totalSize} bytes in {summary.totalTime}");
}
}
# Exit code is 0 on success; -quit ensures the editor closes; -nographics for build servers.
# -buildTarget makes the Editor start on that platform, so scripts compile with its defines.
Unity -batchmode -quit -nographics \
-projectPath "/path/to/Project" \
-buildTarget win64 \
-executeMethod BuildScript.BuildWindows \
-logFile -
using UnityEditor;
using UnityEditor.Build.Profile;
using UnityEditor.Build.Reporting;
public static class ProfileBuild
{
[MenuItem("Build/Windows Release Profile")]
public static void Build()
{
var profile = AssetDatabase.LoadAssetAtPath<BuildProfile>(
"Assets/Settings/Build Profiles/WindowsRelease.asset");
var options = new BuildPlayerWithProfileOptions
{
buildProfile = profile, // platform, scene list, defines from the asset
locationPathName = "Builds/Windows/Game.exe",
options = BuildOptions.None,
};
BuildReport report = BuildPipeline.BuildPlayer(options);
if (report.summary.result != BuildResult.Succeeded)
throw new System.Exception($"Build failed: {report.summary.totalErrors} errors");
}
}
link.xml<!-- Assets/link.xml — keep types the linker can't see are used (reflection, JSON, plugins). -->
<linker>
<assembly fullname="MyGameRuntime" preserve="all"/>
</linker>
SceneManager.LoadScene only sees listed scenes.MissingMethodException/TypeLoadException only in the build — managed stripping removed
reflection-only code. Lower the stripping level or add a link.xml preserve entry.BuildReport.summary.result;
it can return with errors.com.unity.addressables) content
is built by Build → Addressables or by AddressableAssetSettings.BuildPlayerContent. The
Build Addressables on Player Build setting can do it during a player build, but when it
is left at "Use global Settings" the result depends on each machine's Preferences — call the
content build explicitly in CI, and check the profile's load path.BuildPlayer for a target
other than the active one keeps the active platform's UNITY_* defines, and define changes
only apply after a domain reload. Switch platform first (in the Editor) or launch with
-buildTarget (batch mode).BuildOptions.Development enables the profiler/debugging
and is slower; use BuildOptions.None for release.-buildTarget per platform, version
stamping, argument parsing, exit codes), building a Build Profile from the command line, and
an Addressables content-build call, read references/ci-build-script.md.ScriptReference/BuildPipeline.BuildPlayer, ScriptReference/BuildPlayerWithProfileOptions,
the Manual pages "Editor command line arguments" and "Manage scenes in a build", and Unity
Manual build sections (player settings, managed code stripping). For the forward-looking
CoreCLR backend, see the experimental note at
https://docs.unity.com/en-us/engine/6000.7/manual/programming-environment/scripting-backends/coreclr.steam-publish / itch-publish — distributing the player you just built.unity-csharp-scripting — editor scripting conventions used by build scripts.unity-build-size — finding and shrinking what makes a build, APK or Web build large.What SKILL.md sets; muted values are Claude Code's defaults
/gamedev:unity-build-pipelinefrom gamedev
npx claudepluginhub cirobarone78/games-skill --plugin gamedev80 skills in this plugin
/ai-behavior-trees-utility-aiEngine-neutral behavior tree and utility AI code for NPCs in any language: Blackboard, reactive composites, decorators and response-curve scoring. Use when an enemy keeps chasing after losing sight, restarts its action every frame or flip-flops between choices. Not for FSMs, steering or pathfinding (`game-ai`) or Unreal BT, EQS and StateTree (`unreal-behavior-trees`).
/audio-designEngine-neutral game audio technique: bus layout, volume sliders in decibels, loudness, ducking music under dialogue, adaptive music and SFX variation, with Godot, Unity and FMOD/Wwise mappings. Use when mixing a game, making music react to combat, fixing repetitive footsteps or beat sync, or a mix that clips or pumps. Not for the Godot audio API (`godot-audio`).
/