manage_canvas
Manage Canvas settings: render mode, sorting, scaler, and get UI hierarchy
Category: UI
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
action |
string | yes | Action to perform. One of: create, configure, info, list, get_hierarchy |
|
canvas_name |
string | Name of the Canvas | ||
render_mode |
string | Canvas render mode. One of: screen_space_overlay, screen_space_camera, world_space |
||
camera_name |
string | Camera name for ScreenSpaceCamera mode | ||
sort_order |
integer | Sorting order for the canvas | ||
scale_mode |
string | Canvas scaler mode. One of: constant_pixel_size, scale_with_screen_size, constant_physical_size |
||
reference_resolution |
object | Reference resolution for ScaleWithScreenSize mode | ||
match_width_or_height |
number | Match width (0) or height (1) for scaling |
Example call
Section titled “Example call”The arguments below are the required ones; add the optional ones you need.
{ "name": "manage_canvas", "arguments": { "action": "create" }}In SuperSave mode
Section titled “In SuperSave mode”When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "manage_canvas", "args": { … }}. See SuperSave mode.
Source
Section titled “Source”Generated from Assets/NanoraUnityMCP/Editor/Tools/UITools.cs (version 1.2.1). The client receives the same schema from tools/list.