Explorar o código

Merge pull request #59388 from zacryol/init_update_description

update `_init()` description regarding required parameters
Rémi Verschelde %!s(int64=3) %!d(string=hai) anos
pai
achega
7d1c722176
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      doc/classes/Object.xml

+ 2 - 1
doc/classes/Object.xml

@@ -53,7 +53,8 @@
 		<method name="_init" qualifiers="virtual">
 			<return type="void" />
 			<description>
-				Called when the object is initialized.
+				Called when the object is initialized in memory. Can be defined to take in parameters, that are passed in when constructing.
+				[b]Note:[/b] If [method _init] is defined with required parameters, then explicit construction is the only valid means of creating an Object of the class. If any other means (such as [method PackedScene.instantiate]) is used, then initialization will fail.
 			</description>
 		</method>
 		<method name="_notification" qualifiers="virtual">