Merge pull request #66972 from FHEK789/node2d_canvas_item_docs

Add descriptions for Node2D's skew and CanvasItem's clip_children
This commit is contained in:
Rémi Verschelde 2022-10-07 16:10:00 +02:00
commit 1baefceaba
2 changed files with 3 additions and 0 deletions

View file

@ -536,6 +536,7 @@
</methods> </methods>
<members> <members>
<member name="clip_children" type="bool" setter="set_clip_children" getter="is_clipping_children" default="false"> <member name="clip_children" type="bool" setter="set_clip_children" getter="is_clipping_children" default="false">
Allows the current node to clip children nodes, essentially acting as a mask.
</member> </member>
<member name="light_mask" type="int" setter="set_light_mask" getter="get_light_mask" default="1"> <member name="light_mask" type="int" setter="set_light_mask" getter="get_light_mask" default="1">
The rendering layers in which this [CanvasItem] responds to [Light2D] nodes. The rendering layers in which this [CanvasItem] responds to [Light2D] nodes.

View file

@ -119,6 +119,8 @@
[b]Note:[/b] Negative X scales in 2D are not decomposable from the transformation matrix. Due to the way scale is represented with transformation matrices in Godot, negative scales on the X axis will be changed to negative scales on the Y axis and a rotation of 180 degrees when decomposed. [b]Note:[/b] Negative X scales in 2D are not decomposable from the transformation matrix. Due to the way scale is represented with transformation matrices in Godot, negative scales on the X axis will be changed to negative scales on the Y axis and a rotation of 180 degrees when decomposed.
</member> </member>
<member name="skew" type="float" setter="set_skew" getter="get_skew" default="0.0"> <member name="skew" type="float" setter="set_skew" getter="get_skew" default="0.0">
Slants the node.
[b]Note:[/b] Skew is X axis only.
</member> </member>
<member name="transform" type="Transform2D" setter="set_transform" getter="get_transform"> <member name="transform" type="Transform2D" setter="set_transform" getter="get_transform">
Local [Transform2D]. Local [Transform2D].