You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: classes/[email protected]
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1070,7 +1070,7 @@ Returns a :ref:`Resource<class_Resource>` from the filesystem located at the abs
1070
1070
# Load a scene called "main" located in the root of the project directory and cache it in a variable.
1071
1071
var main = load("res://main.tscn") # main will contain a PackedScene resource.
1072
1072
1073
-
\ **Important:** The path must be absolute. A relative path will always return ``null``.
1073
+
\ **Important:** Relative paths are *not* relative to the script calling this method, instead it is prefixed with ``"res://"``. Loading from relative paths might not work as expected.
1074
1074
1075
1075
This function is a simplified version of :ref:`ResourceLoader.load<class_ResourceLoader_method_load>`, which can be used for more advanced scenarios.
Copy file name to clipboardExpand all lines: classes/[email protected]
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5715,7 +5715,7 @@ Converts an angle expressed in degrees to radians.
5715
5715
5716
5716
Returns an "eased" value of ``x`` based on an easing function defined with ``curve``. This easing function is based on an exponent. The ``curve`` can be any floating-point number, with specific values leading to the following behaviors:
5717
5717
5718
-
::
5718
+
.. code:: text
5719
5719
5720
5720
- Lower than -1.0 (exclusive): Ease in-out
5721
5721
- 1.0: Linear
@@ -5856,9 +5856,9 @@ Returns the floating-point modulus of ``x`` divided by ``y``, wrapping equally i
@@ -6374,9 +6374,9 @@ Returns the integer modulus of ``x`` divided by ``y`` that wraps equally in posi
6374
6374
for i in range(-3, 4):
6375
6375
print("%2d %2d | %2d" % [i, i % 3, posmod(i, 3)])
6376
6376
6377
-
Produces:
6377
+
Prints:
6378
6378
6379
-
::
6379
+
.. code:: text
6380
6380
6381
6381
(i) (i % 3) (posmod(i, 3))
6382
6382
-3 0 | 0
@@ -6523,6 +6523,8 @@ Prints one or more arguments to strings in the best way possible to standard err
6523
6523
6524
6524
Prints one or more arguments to strings in the best way possible to the OS terminal. Unlike :ref:`print<class_@GlobalScope_method_print>`, no newline is automatically added at the end.
6525
6525
6526
+
\ **Note:** The OS terminal is *not* the same as the editor's Output dock. The output sent to the OS terminal can be seen when running Godot from a terminal. On Windows, this requires using the ``console.exe`` executable.
6527
+
6526
6528
6527
6529
.. tabs::
6528
6530
@@ -7396,7 +7398,7 @@ Converts a :ref:`Variant<class_Variant>` ``variable`` to a formatted :ref:`Strin
0 commit comments