Canvas drawing layer.
Canvas drawing layer. [CanvasItem] nodes that are direct or indirect children of a [CanvasLayer] will be drawn in that layer. The layer is a numeric index that defines the draw order. The default 2D scene renders with index 0, so a [CanvasLayer] with index -1 will be drawn below, and one with index 1 will be drawn above. This is very useful for HUDs (in layer 1+ or above), or backgrounds (in layer -1 or below).
$DOCS_URL/tutorials/2d/2d_transforms.md
$DOCS_URL/tutorials/2d/canvas_layers.md
https://godotengine.org/asset-library/asset/515
Returns the RID of the canvas used by this layer.
Returns the transform from the [CanvasLayer]s coordinate system to the [Viewport]s coordinate system.
Hides any [CanvasItem] under this [CanvasLayer]. This is equivalent to setting [member visible] to [code]false[/code].
Shows any [CanvasItem] under this [CanvasLayer]. This is equivalent to setting [member visible] to [code]true[/code].
The custom [Viewport] node assigned to the [CanvasLayer]. If [code]null[/code], uses the default viewport instead.
If enabled, the [CanvasLayer] will use the viewport's transform, so it will move when camera moves instead of being anchored in a fixed position on the screen.
Together with [member follow_viewport_scale] it can be used for a pseudo 3D effect.
Scales the layer when using [member follow_viewport_enable]. Layers moving into the foreground should have increasing scales, while layers moving into the background should have decreasing scales.
Layer index for draw order. Lower values are drawn behind higher values.
The layer's base offset.
The layer's rotation in radians.
The layer's rotation in degrees.
The layer's scale.
The layer's transform.
If [code]false[/code], any [CanvasItem] under this [CanvasLayer] will be hidden.
Unlike [member CanvasItem.visible], visibility of a [CanvasLayer] isn't propagated to underlying layers.
Emitted when visibility of the layer is changed. See [member visible].