|
73 | 73 | } |
74 | 74 | [/csharp] |
75 | 75 | [/codeblocks] |
| 76 | + [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. The bottom-most sub-class will be called first, with subsequent calls ascending the class hierarchy. The call chain will stop on the first class that returns a non-[code]null[/code] value. |
76 | 77 | </description> |
77 | 78 | </method> |
78 | 79 | <method name="_get_property_list" qualifiers="virtual"> |
|
185 | 186 | [/codeblocks] |
186 | 187 | [b]Note:[/b] This method is intended for advanced purposes. For most common use cases, the scripting languages offer easier ways to handle properties. See [annotation @GDScript.@export], [annotation @GDScript.@export_enum], [annotation @GDScript.@export_group], etc. If you want to customize exported properties, use [method _validate_property]. |
187 | 188 | [b]Note:[/b] If the object's script is not [annotation @GDScript.@tool], this method will not be called in the editor. |
| 189 | + [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. The bottom-most sub-class will be called first, with subsequent calls ascending the class hierarchy. |
188 | 190 | </description> |
189 | 191 | </method> |
190 | 192 | <method name="_init" qualifiers="virtual"> |
|
265 | 267 | [/csharp] |
266 | 268 | [/codeblocks] |
267 | 269 | [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. |
268 | | - [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. |
| 270 | + [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. The bottom-most sub-class will be called first, with subsequent calls ascending the class hierarchy. |
269 | 271 | </description> |
270 | 272 | </method> |
271 | 273 | <method name="_property_can_revert" qualifiers="virtual"> |
|
274 | 276 | <description> |
275 | 277 | Override this method to customize the given [param property]'s revert behavior. Should return [code]true[/code] if the [param property] has a custom default value and is revertible in the Inspector dock. Use [method _property_get_revert] to specify the [param property]'s default value. |
276 | 278 | [b]Note:[/b] This method must return consistently, regardless of the current value of the [param property]. |
| 279 | + [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. The bottom-most sub-class will be called first, with subsequent calls ascending the class hierarchy. The call chain will stop on the first class that returns [code]true[/code]. |
277 | 280 | </description> |
278 | 281 | </method> |
279 | 282 | <method name="_property_get_revert" qualifiers="virtual"> |
|
282 | 285 | <description> |
283 | 286 | Override this method to customize the given [param property]'s revert behavior. Should return the default value for the [param property]. If the default value differs from the [param property]'s current value, a revert icon is displayed in the Inspector dock. |
284 | 287 | [b]Note:[/b] [method _property_can_revert] must also be overridden for this method to be called. |
| 288 | + [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. The bottom-most sub-class will be called first, with subsequent calls ascending the class hierarchy. The call chain will stop on the first class that returns a non-[code]null[/code] value. |
285 | 289 | </description> |
286 | 290 | </method> |
287 | 291 | <method name="_set" qualifiers="virtual"> |
|
336 | 340 | } |
337 | 341 | [/csharp] |
338 | 342 | [/codeblocks] |
| 343 | + [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. The bottom-most sub-class will be called first, with subsequent calls ascending the class hierarchy. The call chain will stop on the first class that returns [code]true[/code]. |
339 | 344 | </description> |
340 | 345 | </method> |
341 | 346 | <method name="_to_string" qualifiers="virtual"> |
|
0 commit comments