1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

update _init() description

Specify details regarding required parameters.

(cherry picked from commit 21fc3cbe81)
This commit is contained in:
zacryol
2022-03-21 09:13:32 -06:00
committed by Rémi Verschelde
parent 91ba6f7895
commit d298cceeaa

View File

@@ -44,7 +44,8 @@
<method name="_init" qualifiers="virtual"> <method name="_init" qualifiers="virtual">
<return type="void" /> <return type="void" />
<description> <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.instance]) is used, then initialization will fail.
</description> </description>
</method> </method>
<method name="_notification" qualifiers="virtual"> <method name="_notification" qualifiers="virtual">