Draws a wire box in the Scene View using ALINE. Persists for 'duration' seconds. Useful for visualizing areas, volumes, or bounding regions. Can position at a named GameObject's world position and use its scale as the box size.
unity-mcp-cli run-tool aline-draw-box --input '{
"x": 0,
"y": 0,
"z": 0,
"sizeX": 0,
"sizeY": 0,
"sizeZ": 0,
"centerObjectName": "string_value",
"duration": 0,
"colorR": 0,
"colorG": 0,
"colorB": 0,
"colorA": 0
}'
For complex input (multi-line strings, code), save the JSON to a file and use:
unity-mcp-cli run-tool aline-draw-box --input-file args.jsonOr pipe via stdin (recommended):
unity-mcp-cli run-tool aline-draw-box --input-file - <<'EOF' {"param": "value"} EOF
If unity-mcp-cli is not found, either install it globally (npm install -g unity-mcp-cli) or use npx unity-mcp-cli instead.
Read the /unity-initial-setup skill for detailed installation instructions.
| Name | Type | Required | Description |
|---|---|---|---|
x | number | No | Center X position (world space). |
y | number | No | Center Y position (world space). |
z | number | No | Center Z position (world space). |
sizeX | number | No | Box size X. |
sizeY | number | No | Box size Y. |
sizeZ | number | No | Box size Z. |
centerObjectName | string | No | Name of a GameObject to use as center (overrides x/y/z). If set, uses the GO's scale as size unless sizeX/Y/Z specified. |
duration | number | No | Duration in seconds (default 10s). |
colorR | number | No | Color red [0-1]. |
colorG | number | No | Color green [0-1]. |
colorB | number | No | Color blue [0-1]. |
colorA | number | No | Color alpha [0-1]. |
{
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"z": {
"type": "number"
},
"sizeX": {
"type": "number"
},
"sizeY": {
"type": "number"
},
"sizeZ": {
"type": "number"
},
"centerObjectName": {
"type": "string"
},
"duration": {
"type": "number"
},
"colorR": {
"type": "number"
},
"colorG": {
"type": "number"
},
"colorB": {
"type": "number"
},
"colorA": {
"type": "number"
}
}
}
{
"type": "object",
"properties": {
"result": {
"type": "string"
}
},
"required": [
"result"
]
}