Przeglądaj źródła

Merge pull request #107564 from KoBeWi/super_notifications

Add a note about `_notification()` being multilevel
Thaddeus Crews 3 miesięcy temu
rodzic
commit
82879db530
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      doc/classes/Object.xml

+ 1 - 0
doc/classes/Object.xml

@@ -264,6 +264,7 @@
 				[/csharp]
 				[/codeblocks]
 				[b]Note:[/b] The base [Object] defines a few notifications ([constant NOTIFICATION_POSTINITIALIZE] and [constant NOTIFICATION_PREDELETE]). Inheriting classes such as [Node] define a lot more notifications, which are also received by this method.
+				[b]Note:[/b] Unlike other virtual methods, this method is called automatically for every script that overrides it. This means that the base implementation should not be called via [code]super[/code] in GDScript or its equivalents in other languages.
 			</description>
 		</method>
 		<method name="_property_can_revert" qualifiers="virtual">