mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
classref: Sync with current upstream master branch
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
||||
.. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
|
||||
.. DO NOT EDIT THIS FILE, but the CanvasLayer.xml source instead.
|
||||
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
||||
|
||||
.. _class_CanvasLayer:
|
||||
|
||||
@@ -15,7 +16,7 @@ CanvasLayer
|
||||
Brief Description
|
||||
-----------------
|
||||
|
||||
Canvas Item layer.
|
||||
Canvas drawing layer.
|
||||
|
||||
Member Functions
|
||||
----------------
|
||||
@@ -55,15 +56,15 @@ Member Functions
|
||||
Member Variables
|
||||
----------------
|
||||
|
||||
- :ref:`int<class_int>` **layer**
|
||||
- :ref:`Vector2<class_vector2>` **offset**
|
||||
- :ref:`float<class_float>` **rotation**
|
||||
- :ref:`Vector2<class_vector2>` **scale**
|
||||
- :ref:`int<class_int>` **layer** - Layer index for draw order. Lower values are drawn first. Default value: [code]1[/code].
|
||||
- :ref:`Vector2<class_vector2>` **offset** - The layer's base offset.
|
||||
- :ref:`float<class_float>` **rotation** - The layer's rotation in degrees.
|
||||
- :ref:`Vector2<class_vector2>` **scale** - The layer's scale.
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
Canvas Item layer. :ref:`CanvasItem<class_canvasitem>` nodes that are direct or indirect children of a :ref:`CanvasLayer<class_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 :ref:`CanvasLayer<class_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).
|
||||
Canvas drawing layer. :ref:`CanvasItem<class_canvasitem>` nodes that are direct or indirect children of a :ref:`CanvasLayer<class_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 :ref:`CanvasLayer<class_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).
|
||||
|
||||
Member Function Description
|
||||
---------------------------
|
||||
|
||||
Reference in New Issue
Block a user