classref: Sync with latest 4.0-dev

This commit is contained in:
Rémi Verschelde
2021-11-15 12:28:38 +01:00
parent d6d97aaf5e
commit 30193215cf
829 changed files with 12891 additions and 7761 deletions

View File

@@ -1,6 +1,6 @@
:github_url: hide
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the @GDScript.xml source instead.
.. The source is found in doc/classes or modules/<name>/doc_classes.
@@ -185,6 +185,8 @@ would print
[{function:bar, line:12, source:res://script.gd}, {function:foo, line:9, source:res://script.gd}, {function:_ready, line:6, source:res://script.gd}]
**Note:** Not supported for calling from threads. Instead, this will return an empty array.
----
.. _class_@GDScript_method_inst2dict:
@@ -263,7 +265,16 @@ Returns a :ref:`Resource<class_Resource>` from the filesystem located at ``path`
- void **print_debug** **(** ... **)** |vararg|
Like :ref:`@GlobalScope.print<class_@GlobalScope_method_print>`, but prints only when used in debug mode.
Like :ref:`@GlobalScope.print<class_@GlobalScope_method_print>`, but includes the current stack frame when running with the debugger turned on.
Output in the console would look something like this:
::
Test print
At: res://test.gd:15:_process()
**Note:** Not supported for calling from threads. Instead of the stack frame, this will print the thread ID.
----
@@ -271,7 +282,7 @@ Like :ref:`@GlobalScope.print<class_@GlobalScope_method_print>`, but prints only
- void **print_stack** **(** **)**
Prints a stack track at code location, only works when running with debugger turned on.
Prints a stack trace at the current code location. Only works when running with debugger turned on.
Output in the console would look something like this:
@@ -279,6 +290,8 @@ Output in the console would look something like this:
Frame 0 - res://test.gd:16 in function '_process'
**Note:** Not supported for calling from threads. Instead of the stack trace, this will print the thread ID.
----
.. _class_@GDScript_method_range: