Browse Source

Merge pull request #48867 from kleonc/node2d-z_index-docs-master

 Document valid range of Node2D.z_index
Rémi Verschelde 4 years ago
parent
commit
ba7448f84e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      doc/classes/Node2D.xml

+ 1 - 1
doc/classes/Node2D.xml

@@ -154,7 +154,7 @@
 			If [code]true[/code], the node's Z index is relative to its parent's Z index. If this node's Z index is 2 and its parent's effective Z index is 3, then this node's effective Z index will be 2 + 3 = 5.
 		</member>
 		<member name="z_index" type="int" setter="set_z_index" getter="get_z_index" default="0">
-			Z index. Controls the order in which the nodes render. A node with a higher Z index will display in front of others.
+			Z index. Controls the order in which the nodes render. A node with a higher Z index will display in front of others. Must be between [constant RenderingServer.CANVAS_ITEM_Z_MIN] and [constant RenderingServer.CANVAS_ITEM_Z_MAX] (inclusive).
 		</member>
 	</members>
 	<constants>