Before calling any skill in this module: if you are about to call a skill with parameters guessed from its name or description, STOP — read this file (or fetch its schema via
GET /skills/recommend?includeSchema=true
) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.
Automation for Netcode for GameObjects (NGO) multiplayer setup and operations. Every skill is source-verified against NGO 2.x; when the package is absent, each skill returns a
error with install instructions. A subset of skills additionally require NGO
2.5.0+ (see
NGO 2.5+ features) — on an older 2.x install they return a structured "requires 2.5.0+" error instead of a compile error, since AttachableBehaviour/AttachableNode/ComponentController are detected by reflection, not by a dedicated version symbol.
Requires:
com.unity.netcode.gameobjects
(2.x), Unity 6000.0+.
Strongly recommended: before calling any
skill, load
netcode-design. NGO lifecycle and permission rules are strict; skills alone cannot prevent incorrect business code.
-
Approval (default): query/list/info skills (
,
,
netcode_get_transport_info
,
netcode_list_network_objects
,
netcode_get_network_object_info
,
netcode_list_network_prefabs
,
netcode_list_network_behaviours
,
netcode_get_spawn_manager_info
,
netcode_get_scene_manager_info
,
,
,
) run directly. Mutators (create/configure/attach/add) are FullAuto — on
, run the grant protocol.
-
Auto / Bypass: SemiAuto and FullAuto run directly.
-
Auto-forbidden in this module:
- → ,
netcode_remove_network_object
, netcode_remove_from_prefabs_list
- →
netcode_add_network_behaviour_script
(writes a new , forces script compile + Domain Reload)
- → , , ,
These are reachable only under Bypass mode or via a user-managed Allowlist entry; the grant flow returns
. Runtime control + Behaviour-script generation are the practical reason this module is gated.
-
When
com.unity.netcode.gameobjects
is missing, every skill returns a
error with install instructions.
/
skills use the usual target parameters:
Prefer
when there is a chance of duplicate names.
Added in Netcode for GameObjects
2.5.0 (verified against the package CHANGELOG, PR #3518):
/
are an alternate "attach" parenting system that avoids the classic
parenting pitfalls;
network-synchronizes the enabled/disabled state of a list of components. On NGO 2.0–2.4.x (
is still active, but these types don't exist yet) every skill below returns a structured
error instead of failing — call
first to confirm.
python
import unity_skills as u
# 1. Inspect current state
u.call_skill("netcode_check_setup")
# 2. Create NetworkManager + UnityTransport
u.call_skill("netcode_create_manager", name="NetworkManager")
# 3. Configure the NetworkConfig
u.call_skill("netcode_configure_manager",
tickRate=30,
connectionApproval=False,
enableSceneManagement=True,
networkTopology="ClientServer")
# 4. Transport
u.call_skill("netcode_set_transport_address",
address="127.0.0.1", port=7777, serverListenAddress="0.0.0.0")
# 5. Player prefab setup
# NOTE: add_network_object on a prefab path depends on GameObjectFinder support.
# Safer route: instantiate the prefab in the scene first, then attach.
u.call_skill("netcode_add_network_object", path="Assets/Prefabs/Player.prefab")
u.call_skill("netcode_create_prefabs_list", path="Assets/NetworkPrefabs.asset")
u.call_skill("netcode_add_to_prefabs_list",
listPath="Assets/NetworkPrefabs.asset",
prefabPath="Assets/Prefabs/Player.prefab")
u.call_skill("netcode_set_player_prefab", prefabPath="Assets/Prefabs/Player.prefab")
# 6. Generate a NetworkBehaviour template
u.call_skill("netcode_add_network_behaviour_script",
className="PlayerController",
path="Assets/Scripts/PlayerController.cs",
includeRpc=True, includeNetworkVariable=True)
# 7. Drive the session in PlayMode
u.call_skill("editor_play") # enter PlayMode
u.call_skill("netcode_start_host")
u.call_skill("netcode_get_status")
u.call_skill("netcode_shutdown")
u.call_skill("editor_stop")
Targets NGO
2.x (validated against 2.13.1). Legacy 1.x (old prefabs list layout, different RPC model) is out of scope for this module. The
NGO 2.5+ features skills additionally require 2.5.0+ within that range; call
to check before relying on them.
For exact parameter names, defaults, and return fields, query
or
unity_skills.get_skill_schema()
. This document is a routing and best-practice guide, not the authoritative signature source.