Docs · Extensions · Unity

AI Splines

Author splines — SplineContainers, knots, tangents and tangent-modes, closed loops, and evaluate points along a curve.

Last updated: 2026-10-17 View as Markdown

At a glance

Capabilities
3 capabilities
Version
2.0.0
Package id
com.ivanmurzak.unity.mcp.splines
Engine
Unity · Unity 2022.3+
Wraps
com.unity.splines
Repository

What the agent can do with it

Adds no MCP tools: it contributes an RQL module with the splines source and adapters for SplineContainer. That powers 3 capabilities the agent reaches through rql-query / rql-mutate. How RQL works →

  • Create splines

    Create SplineContainers (open or closed) and add or remove splines inside them.

    splines | call CreateContainer("Road", "(0, 0, 5)", "(0, 90, 0)", true)
  • Knots & tangents

    Add, insert, move and remove knots, change tangent modes, and open or close a spline.

    splines | get containers | where gameObject.name == "Road" | call AddKnot("(1, 0, 2)")
  • Points along a curve

    Get the position at any point along a spline (0 to 1) — handy for placing objects along a path.

    splines | get containers | where gameObject.name == "Road" | call Evaluate(0.5)

See it in the Unity catalog →

Install

Requires the base plugin com.ivanmurzak.unity.mcp. After installing, the RQL module loads with the package — the agent sees it in rql-schema.

OpenUPMopenupm add com.ivanmurzak.unity.mcp.splines

When to ask the AI for it

Ask for paths, rails, patrol routes, or anything that follows a curve.

Not sure if it's installed? Ask the agent to run rql-schema — the splines source only exists when the package is present.

Example prompts

Copy-pasteable first requests. Start with one, verify it in the editor, then build up.

  1. Create a closed-loop spline with 6 knots forming a rough circle of radius 5 around the origin.
  2. Add a knot to the `Track` spline halfway along it and smooth its tangents.

Keep going