Studio Yotsuba
Back to Node List

Rule Canvas

rule_canvas

Paints materials on a grid canvas and outputs a RuleCanvas.

Reviewed
Guide available

Input Ports

NameTypeDescription
Rule Tile Asset
asset
RuleTileAsset
Bundled tile set + rule set. Takes priority over the individual inputs.
Rule Canvas
canvas
RuleCanvas
Optional existing canvas to pass through instead of the edited one.
Rule TileSet
tile_set
RuleTileSet
Optional tiles used to show the resolved preview.
RuleSet
rule_set
RuleSet
Optional rules used when painting by material id.

Output Ports

NameTypeDescription
Rule Canvas
canvas
RuleCanvas
Painted rule canvas data.
Rule Resolved
resolved
RuleResolved
Resolved placement when a RuleTileSet is connected.
Image
image
Image
Preview image of the resolved canvas when possible.
Summary
summary
Text
Short canvas summary.
Warnings
warnings
Text
Warnings about missing preview inputs.

Parameters

NameTypeDefaultRangeDescription / Options
Width
width
Int
81–4096

Width in cells for a new canvas.

Height
height
Int
81–4096

Height in cells for a new canvas.

Cell Width
cell_width
Int
161–2048

Tile width for a new canvas.

Cell Height
cell_height
Int
161–2048

Tile height for a new canvas.

Canvas Data
canvas_data
CustomData
——

Canvas JSON saved by the editor.

Overview

The canvas for painting an autotile map. Paint materials such as "wall" or "grass" into grid cells, and the connected rules automatically choose the correct tile for each position: corners, edges, and interiors. This is the workbench for the rule-tile workflow.

Usage tips

  • The minimal setup is rule_set_preset (tile set + rules) → rule_canvas. That alone enables painting and automatic tile selection.
  • The most important concept is that you paint a material, not a tile. The rules determine which tile is placed.
  • Export the resolved result (resolved) to Tiled with tiled_map_export.

Related nodes

  • rule_set_preset — supplies the go-to setup; start here
  • rule_set_editor — creates and customizes rules
  • rule_render / rule_animation_render — renders outside the canvas
  • tiled_map_export — exports the map

What this node does

Paint grid cells in the dedicated editor (Edit Rule Canvas) and output the result as a RuleCanvas. When a rule tile set and rule set are connected, the node also outputs the resolved result (RuleResolved) and a preview image immediately. It replaces the legacy Tile Map Canvas.

Key settings

ID Name Description
width / height Width/height Number of cells in a new canvas.
cell_width / cell_height Cell width/height Pixel dimensions of one tile.
canvas_data Canvas data JSON stored by the editor. Do not edit it directly; use the editor.

Example wiring

RuleSetPreset.tile_set -> RuleCanvas.tile_set
RuleSetPreset.rule_set -> RuleCanvas.rule_set
RuleCanvas.resolved    -> TiledMapExport.resolved
Back to Node List