splines
Skill15 starsChanged 5 months agoMITView on GitHub
Skill for AI agents driving the Unity Splines package (com.unity.splines) in a Unity project through the unity-open-mcp MCP server. This domain is embedded in the bridge and opt-in. Its tools compile in only when the project has com.unity.splines installed (the bridge sets the UNITY_OPEN_MCP_EXT_SPLINES define automatically — no manual scripting-define write). Its tool group is hidden from ListTools until the connected session activates it. - Unity Editor is open with the target project. - unity_open_mcp_ping returns connected: true. - The…
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- demo/AGENTS.mdAGENTS.md
- hub/AGENTS.mdAGENTS.md
- mcp-server/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- animationSkill
- audioSkill
- cinemachineSkill
- constraintsSkill
- input-simulationSkill
- inputsystemSkill
- lightingSkill
- memoryprofilerSkill
- navigationSkill
- particlesystemSkill
- probuilderSkill
- shadergraphSkill
- spriteatlasSkill
- terrainSkill
- textureSkill
- tilemapSkill
- timelineSkill
- uiSkill
- vfxSkill
- unity-open-mcpSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
All tools in this pack use unity_open_mcp_splines_*.
- Very specific: line 72
When a typed mutator does not cover a serialized SplineContainer field, use unity_open_mcp_splines_modify:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Unity Open MCP — Splines Extension
Skill for AI agents driving the Unity Splines package (com.unity.splines) in a
Unity project through the unity-open-mcp MCP server.
This domain is embedded in the bridge and opt-in. Its tools compile in only when the project has
com.unity.splinesinstalled (the bridge sets theUNITY_OPEN_MCP_EXT_SPLINESdefine automatically — no manual scripting-define write). Its tool group is hidden fromListToolsuntil the connected session activates it.
Preconditions
- Unity Editor is open with the target project.
unity_open_mcp_pingreturnsconnected: true.- The project has
com.unity.splinesinstalled. Ifcapabilitiesreports thesplinesgroup asavailable: false, install the package and let the bridge recompile. - The
splinestool group is activated — callunity_open_mcp_manage_tools(action="activate", group="splines")before invoking anysplines_*tool. Fresh sessions start with two default-on groups (coreandgate-and-verify); activate the other groups you need on demand.
Tool prefix
All tools in this pack use unity_open_mcp_splines_*. Mutating tools accept the
standard paths_hint (the host's scene path) and run the full gate path;
read-only tools (splines_evaluate, splines_get_knots) are gate-free.
Vocabulary
A SplineContainer is a MonoBehaviour component that holds one or more
Spline objects. Each spline is an ordered list of BezierKnots — every
knot has a Position, Rotation, TangentIn, TangentOut, and a
TangentMode that controls how the tangents are computed:
- AutoSmooth — tangents auto-computed for a smooth curve through the knot (the most common choice).
- BezierSmooth — smooth, with adjustable tangent length.
- Broken — the two tangents are independent.
- Mirrored — the two tangents mirror each other across the knot.
- Linear — sharp corners (straight segments).
Canonical workflow: a path through points
- Create a container —
unity_open_mcp_splines_container_createadds a new GameObject with aSplineContainerto the active scene. It is initialized with one empty primary spline (spline_index0). Returns the new GameObject'sinstanceId+path— use theinstanceIdto address it next. - Add knots —
unity_open_mcp_splines_add_knotappends aBezierKnot.position("x,y,z") is required;tangent_modeis optional ("AutoSmooth"is the friendliest default). Each call returns the new knotindex. A path needs at least two knots to be evaluable. - Inspect —
unity_open_mcp_splines_get_knotslists every knot's position, rotation, tangents, and tangent mode. Use it to discover validknot_indexvalues before callingset_knot/set_tangent_mode. - Sample —
unity_open_mcp_splines_evaluateatt(0..1) returns the world-space position, normalized tangent (direction), and up vector — pair it withgameobject_create/execute_csharpto place objects along the path.
Configuring the curve shape
unity_open_mcp_splines_set_knotreplaces a knot (byknot_index). Omitted fields keep the current knot's value — call it to move a knot, change its rotation, or hand-set its tangents.unity_open_mcp_splines_set_tangent_modesets the mode for one knot (knot_index) or the whole spline (knot_index: -1). For a closed loop, setclosed: trueatcontainer_createtime.
Reflective mutation (niche container fields)
When a typed mutator does not cover a serialized SplineContainer field, use
unity_open_mcp_splines_modify:
{
"instance_id": 12345,
"fields_json": "[{\"field\":\"someField\",\"value\":true,\"type\":\"bool\"}]",
"paths_hint": ["Assets/Scenes/Game.unity"]
}Each entry is { field, value, type? } where type is
int | float | bool | string | vector (default inferred from the field's current
type). Per-field errors are accumulated — a single bad entry does not abort the
batch. Do not use modify for knot fields — use set_knot /
set_tangent_mode instead; modify targets the container component, not the
spline knot collection.
Common recipes
A smooth camera path
splines_container_createwithname: "CameraPath". Note theinstanceId.splines_add_knotfour times with positions andtangent_mode: "AutoSmooth".splines_get_knotsto confirm the knot order.- Loop
splines_evaluateatt = 0, 0.25, 0.5, 0.75, 1.0to place keyframed camera positions, or drive a dolly at runtime by samplingtover time.
Close a loop
splines_container_createwithclosed: true, then add ≥3 knots.- The spline connects the last knot back to the first automatically.
Agent-sense pairing
unity_senses_screenshot(view: "scene") visually confirms the spline shape — the editor renders splines as a colored curve with knot gizmos.unity_senses_spatial_querycan supply candidate world positions to feed intosplines_add_knot.
Tool reference
| Tool | Mutating | Lifecycle | Notes |
splines_container_create | yes | editor_settle | New GameObject + SplineContainer. |
splines_add_knot | yes | editor_settle | Append a BezierKnot; position required. |
splines_set_knot | yes | editor_settle | Replace a knot by knot_index. |
splines_set_tangent_mode | yes | editor_settle | One knot (knot_index) or whole spline (-1). |
splines_evaluate | no | none | Position + tangent + up at ratio t. |
splines_get_knots | no | none | List every knot's full detail. |
splines_modify | yes | editor_settle | Reflective field setter for container fields. |
Address every target by instance_id > path > name (same model as
gameobject_* / component_*). Every mutating tool requires a non-empty
paths_hint scoped to the host's scene path — the gate has no whole-project
fallback.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

