Canvas drawing layer.
Canvas drawing layer. [CanvasItem] nodes that are direct or indirect children of a [code]CanvasLayer[/code] 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 [code]CanvasLayer[/code] 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).
Return the layer index, determines the draw order, a lower value will be below a higher one.
Return the base offset for this layer (helper).
Return the base rotation for this layer in radians (helper).
Return the base rotation for this layer in degrees.
Return the base scale for this layer (helper).
Return the base transform for this layer.
Return the [World2D] used by this layer.
Set the layer index, determines the draw order, a lower value will be below a higher one.
Set the base offset for this layer (helper).
Set the base rotation for this layer in radians (helper).
Set the base rotation for this layer in degrees (helper).
Set the base scale for this layer (helper).
Set the base transform for this layer.
- Layer index for draw order. Lower values are drawn first. Default value: [code]1[/code].
- The layer's base offset.
- The layer's rotation in degrees.
- The layer's scale.