From 7135d64036a98fcd85b1bc2e50b26c5bd081a4fa Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 24 Mar 2022 10:49:13 +0100 Subject: [PATCH] Backported: update _init() description, Specify details regarding required parameters. - zacryol - https://github.com/godotengine/godot/commit/3fe37f963595cb1887110f9070275d72c54ff0a6 --- doc/classes/Object.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml index 09abbfb6b..81c96e470 100644 --- a/doc/classes/Object.xml +++ b/doc/classes/Object.xml @@ -42,7 +42,8 @@ - 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.