Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion classes/class_@gdscript.rst
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,8 @@ See also :ref:`@GlobalScope.PROPERTY_HINT_NODE_PATH_VALID_TYPES<class_@GlobalSco

@export_node_path("Button", "TouchScreenButton") var some_button

\ **Note:** The type must be a native class or a globally registered script (using the ``class_name`` keyword) that inherits :ref:`Node<class_Node>`.

.. rst-class:: classref-item-separator

----
Expand Down Expand Up @@ -665,7 +667,7 @@ Mark the following method for remote procedure calls. See :doc:`High-level multi

If ``mode`` is set as ``"any_peer"``, allows any peer to call this RPC function. Otherwise, only the authority peer is allowed to call it and ``mode`` should be kept as ``"authority"``. When configuring functions as RPCs with :ref:`Node.rpc_config<class_Node_method_rpc_config>`, each of these modes respectively corresponds to the :ref:`MultiplayerAPI.RPC_MODE_AUTHORITY<class_MultiplayerAPI_constant_RPC_MODE_AUTHORITY>` and :ref:`MultiplayerAPI.RPC_MODE_ANY_PEER<class_MultiplayerAPI_constant_RPC_MODE_ANY_PEER>` RPC modes. See :ref:`RPCMode<enum_MultiplayerAPI_RPCMode>`. If a peer that is not the authority tries to call a function that is only allowed for the authority, the function will not be executed. If the error can be detected locally (when the RPC configuration is consistent between the local and the remote peer), an error message will be displayed on the sender peer. Otherwise, the remote peer will detect the error and print an error there.

If ``sync`` is set as ``"call_remote"``, the function will only be executed on the remote peer, but not locally. To run this function locally too, set ``sync`` to ``"call_local"``. When configuring functions as RPCs with :ref:`Node.rpc_config<class_Node_method_rpc_config>`, this is equivalent to setting `call_local` to `true`.
If ``sync`` is set as ``"call_remote"``, the function will only be executed on the remote peer, but not locally. To run this function locally too, set ``sync`` to ``"call_local"``. When configuring functions as RPCs with :ref:`Node.rpc_config<class_Node_method_rpc_config>`, this is equivalent to setting ``call_local`` to ``true``.

The ``transfer_mode`` accepted values are ``"unreliable"``, ``"unreliable_ordered"``, or ``"reliable"``. It sets the transfer mode of the underlying :ref:`MultiplayerPeer<class_MultiplayerPeer>`. See :ref:`MultiplayerPeer.transfer_mode<class_MultiplayerPeer_property_transfer_mode>`.

Expand Down
26 changes: 20 additions & 6 deletions classes/class_@globalscope.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Properties
+---------------------------------------------------------------+-------------------------------------------------------------------------------------+
| :ref:`DisplayServer<class_DisplayServer>` | :ref:`DisplayServer<class_@GlobalScope_property_DisplayServer>` |
+---------------------------------------------------------------+-------------------------------------------------------------------------------------+
| :ref:`EditorInterface<class_EditorInterface>` | :ref:`EditorInterface<class_@GlobalScope_property_EditorInterface>` |
+---------------------------------------------------------------+-------------------------------------------------------------------------------------+
| :ref:`Engine<class_Engine>` | :ref:`Engine<class_@GlobalScope_property_Engine>` |
+---------------------------------------------------------------+-------------------------------------------------------------------------------------+
| :ref:`EngineDebugger<class_EngineDebugger>` | :ref:`EngineDebugger<class_@GlobalScope_property_EngineDebugger>` |
Expand Down Expand Up @@ -4725,6 +4727,20 @@ The :ref:`DisplayServer<class_DisplayServer>` singleton.

----

.. _class_@GlobalScope_property_EditorInterface:

.. rst-class:: classref-property

:ref:`EditorInterface<class_EditorInterface>` **EditorInterface**

The :ref:`EditorInterface<class_EditorInterface>` singleton.

\ **Note:** Only available in editor builds.

.. rst-class:: classref-item-separator

----

.. _class_@GlobalScope_property_Engine:

.. rst-class:: classref-property
Expand Down Expand Up @@ -5598,9 +5614,9 @@ Returns a human-readable name for the given :ref:`Error<enum_@GlobalScope_Error>

:ref:`float<class_float>` **exp** **(** :ref:`float<class_float>` x **)**

The natural exponential function. It raises the mathematical constant **e** to the power of ``x`` and returns it.
The natural exponential function. It raises the mathematical constant *e* to the power of ``x`` and returns it.

\ **e** has an approximate value of 2.71828, and can be obtained with ``exp(1)``.
\ *e* has an approximate value of 2.71828, and can be obtained with ``exp(1)``.

For exponents to other bases use the method :ref:`pow<class_@GlobalScope_method_pow>`.

Expand Down Expand Up @@ -6158,9 +6174,7 @@ Use a negative ``delta`` value to move away.

:ref:`int<class_int>` **nearest_po2** **(** :ref:`int<class_int>` value **)**

Returns the nearest equal or larger power of 2 for the integer ``value``.

In other words, returns the smallest value ``a`` where ``a = pow(2, n)`` such that ``value <= a`` for some non-negative integer ``n``.
Returns the smallest integer power of 2 that is greater than or equal to ``value``.

::

Expand All @@ -6171,7 +6185,7 @@ In other words, returns the smallest value ``a`` where ``a = pow(2, n)`` such th
nearest_po2(0) # Returns 0 (this may not be expected)
nearest_po2(-1) # Returns 0 (this may not be expected)

\ **Warning:** Due to the way it is implemented, this function returns ``0`` rather than ``1`` for negative values of ``value`` (in reality, 1 is the smallest integer power of 2).
\ **Warning:** Due to its implementation, this method returns ``0`` rather than ``1`` for values less than or equal to ``0``, with an exception for ``value`` being the smallest negative 64-bit integer (``-9223372036854775808``) in which case the ``value`` is returned unchanged.

.. rst-class:: classref-item-separator

Expand Down
2 changes: 1 addition & 1 deletion classes/class_area3d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Description

This node can also locally alter or override physics parameters (gravity, damping) and route audio to custom audio buses.

\ **Warning:** Using a :ref:`ConcavePolygonShape3D<class_ConcavePolygonShape3D>` inside a :ref:`CollisionShape3D<class_CollisionShape3D>` child of this node (created e.g. by using the *Create Trimesh Collision Sibling* option in the *Mesh* menu that appears when selecting a :ref:`MeshInstance3D<class_MeshInstance3D>` node) may give unexpected results, since this collision shape is hollow. If this is not desired, it has to be split into multiple :ref:`ConvexPolygonShape3D<class_ConvexPolygonShape3D>`\ s or primitive shapes like :ref:`BoxShape3D<class_BoxShape3D>`, or in some cases it may be replaceable by a :ref:`CollisionPolygon3D<class_CollisionPolygon3D>`.
\ **Warning:** Using a :ref:`ConcavePolygonShape3D<class_ConcavePolygonShape3D>` inside a :ref:`CollisionShape3D<class_CollisionShape3D>` child of this node (created e.g. by using the **Create Trimesh Collision Sibling** option in the **Mesh** menu that appears when selecting a :ref:`MeshInstance3D<class_MeshInstance3D>` node) may give unexpected results, since this collision shape is hollow. If this is not desired, it has to be split into multiple :ref:`ConvexPolygonShape3D<class_ConvexPolygonShape3D>`\ s or primitive shapes like :ref:`BoxShape3D<class_BoxShape3D>`, or in some cases it may be replaceable by a :ref:`CollisionPolygon3D<class_CollisionPolygon3D>`.

.. rst-class:: classref-introduction-group

Expand Down
32 changes: 32 additions & 0 deletions classes/class_astargrid2d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ Methods
+-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`clear<class_AStarGrid2D_method_clear>` **(** **)** |
+-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`fill_solid_region<class_AStarGrid2D_method_fill_solid_region>` **(** :ref:`Rect2i<class_Rect2i>` region, :ref:`bool<class_bool>` solid=true **)** |
+-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`fill_weight_scale_region<class_AStarGrid2D_method_fill_weight_scale_region>` **(** :ref:`Rect2i<class_Rect2i>` region, :ref:`float<class_float>` weight_scale **)** |
+-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Vector2i[]<class_Vector2i>` | :ref:`get_id_path<class_AStarGrid2D_method_get_id_path>` **(** :ref:`Vector2i<class_Vector2i>` from_id, :ref:`Vector2i<class_Vector2i>` to_id **)** |
+-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`PackedVector2Array<class_PackedVector2Array>` | :ref:`get_point_path<class_AStarGrid2D_method_get_point_path>` **(** :ref:`Vector2i<class_Vector2i>` from_id, :ref:`Vector2i<class_Vector2i>` to_id **)** |
Expand Down Expand Up @@ -440,6 +444,34 @@ Clears the grid and sets the :ref:`region<class_AStarGrid2D_property_region>` to

----

.. _class_AStarGrid2D_method_fill_solid_region:

.. rst-class:: classref-method

void **fill_solid_region** **(** :ref:`Rect2i<class_Rect2i>` region, :ref:`bool<class_bool>` solid=true **)**

Fills the given ``region`` on the grid with the specified value for the solid flag.

\ **Note:** Calling :ref:`update<class_AStarGrid2D_method_update>` is not needed after the call of this function.

.. rst-class:: classref-item-separator

----

.. _class_AStarGrid2D_method_fill_weight_scale_region:

.. rst-class:: classref-method

void **fill_weight_scale_region** **(** :ref:`Rect2i<class_Rect2i>` region, :ref:`float<class_float>` weight_scale **)**

Fills the given ``region`` on the grid with the specified value for the weight scale.

\ **Note:** Calling :ref:`update<class_AStarGrid2D_method_update>` is not needed after the call of this function.

.. rst-class:: classref-item-separator

----

.. _class_AStarGrid2D_method_get_id_path:

.. rst-class:: classref-method
Expand Down
18 changes: 9 additions & 9 deletions classes/class_audioeffectdelay.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Feedback delay time in milliseconds.
- void **set_feedback_level_db** **(** :ref:`float<class_float>` value **)**
- :ref:`float<class_float>` **get_feedback_level_db** **(** **)**

Sound level for ``tap1``.
Sound level for feedback.

.. rst-class:: classref-item-separator

Expand Down Expand Up @@ -171,7 +171,7 @@ Low-pass filter for feedback, in Hz. Frequencies below this value are filtered o
- void **set_tap1_active** **(** :ref:`bool<class_bool>` value **)**
- :ref:`bool<class_bool>` **is_tap1_active** **(** **)**

If ``true``, ``tap1`` will be enabled.
If ``true``, the first tap will be enabled.

.. rst-class:: classref-item-separator

Expand All @@ -188,7 +188,7 @@ If ``true``, ``tap1`` will be enabled.
- void **set_tap1_delay_ms** **(** :ref:`float<class_float>` value **)**
- :ref:`float<class_float>` **get_tap1_delay_ms** **(** **)**

``tap1`` delay time in milliseconds.
First tap delay time in milliseconds.

.. rst-class:: classref-item-separator

Expand All @@ -205,7 +205,7 @@ If ``true``, ``tap1`` will be enabled.
- void **set_tap1_level_db** **(** :ref:`float<class_float>` value **)**
- :ref:`float<class_float>` **get_tap1_level_db** **(** **)**

Sound level for ``tap1``.
Sound level for the first tap.

.. rst-class:: classref-item-separator

Expand All @@ -222,7 +222,7 @@ Sound level for ``tap1``.
- void **set_tap1_pan** **(** :ref:`float<class_float>` value **)**
- :ref:`float<class_float>` **get_tap1_pan** **(** **)**

Pan position for ``tap1``. Value can range from -1 (fully left) to 1 (fully right).
Pan position for the first tap. Value can range from -1 (fully left) to 1 (fully right).

.. rst-class:: classref-item-separator

Expand All @@ -239,7 +239,7 @@ Pan position for ``tap1``. Value can range from -1 (fully left) to 1 (fully righ
- void **set_tap2_active** **(** :ref:`bool<class_bool>` value **)**
- :ref:`bool<class_bool>` **is_tap2_active** **(** **)**

If ``true``, ``tap2`` will be enabled.
If ``true``, the second tap will be enabled.

.. rst-class:: classref-item-separator

Expand All @@ -256,7 +256,7 @@ If ``true``, ``tap2`` will be enabled.
- void **set_tap2_delay_ms** **(** :ref:`float<class_float>` value **)**
- :ref:`float<class_float>` **get_tap2_delay_ms** **(** **)**

**Tap2** delay time in milliseconds.
Second tap delay time in milliseconds.

.. rst-class:: classref-item-separator

Expand All @@ -273,7 +273,7 @@ If ``true``, ``tap2`` will be enabled.
- void **set_tap2_level_db** **(** :ref:`float<class_float>` value **)**
- :ref:`float<class_float>` **get_tap2_level_db** **(** **)**

Sound level for ``tap2``.
Sound level for the second tap.

.. rst-class:: classref-item-separator

Expand All @@ -290,7 +290,7 @@ Sound level for ``tap2``.
- void **set_tap2_pan** **(** :ref:`float<class_float>` value **)**
- :ref:`float<class_float>` **get_tap2_pan** **(** **)**

Pan position for ``tap2``. Value can range from -1 (fully left) to 1 (fully right).
Pan position for the second tap. Value can range from -1 (fully left) to 1 (fully right).

.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
Expand Down
2 changes: 1 addition & 1 deletion classes/class_audioserver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ Returns the names of all audio output devices detected on the system.

:ref:`float<class_float>` **get_output_latency** **(** **)** |const|

Returns the audio driver's output latency.
Returns the audio driver's output latency. This can be expensive, it is not recommended to call this every frame.

.. rst-class:: classref-item-separator

Expand Down
8 changes: 4 additions & 4 deletions classes/class_basebutton.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Methods
+-------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`_pressed<class_BaseButton_method__pressed>` **(** **)** |virtual| |
+-------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`_toggled<class_BaseButton_method__toggled>` **(** :ref:`bool<class_bool>` button_pressed **)** |virtual| |
| void | :ref:`_toggled<class_BaseButton_method__toggled>` **(** :ref:`bool<class_bool>` toggled_on **)** |virtual| |
+-------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+
| :ref:`DrawMode<enum_BaseButton_DrawMode>` | :ref:`get_draw_mode<class_BaseButton_method_get_draw_mode>` **(** **)** |const| |
+-------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+
Expand Down Expand Up @@ -126,9 +126,9 @@ If you need to know the button's pressed state (and :ref:`toggle_mode<class_Base

.. rst-class:: classref-signal

**toggled** **(** :ref:`bool<class_bool>` button_pressed **)**
**toggled** **(** :ref:`bool<class_bool>` toggled_on **)**

Emitted when the button was just toggled between pressed and normal states (only if :ref:`toggle_mode<class_BaseButton_property_toggle_mode>` is active). The new state is contained in the ``button_pressed`` argument.
Emitted when the button was just toggled between pressed and normal states (only if :ref:`toggle_mode<class_BaseButton_property_toggle_mode>` is active). The new state is contained in the ``toggled_on`` argument.

.. rst-class:: classref-section-separator

Expand Down Expand Up @@ -419,7 +419,7 @@ Called when the button is pressed. If you need to know the button's pressed stat

.. rst-class:: classref-method

void **_toggled** **(** :ref:`bool<class_bool>` button_pressed **)** |virtual|
void **_toggled** **(** :ref:`bool<class_bool>` toggled_on **)** |virtual|

Called when the button is toggled (only if :ref:`toggle_mode<class_BaseButton_property_toggle_mode>` is active).

Expand Down
2 changes: 1 addition & 1 deletion classes/class_bone2d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void **set_bone_angle** **(** :ref:`float<class_float>` angle **)**

Sets the bone angle for the **Bone2D**. This is typically set to the rotation from the **Bone2D** to a child **Bone2D** node.

\ **Note:** **Note:** This is different from the **Bone2D**'s rotation. The bone's angle is the rotation of the bone shown by the gizmo, which is unaffected by the **Bone2D**'s :ref:`Node2D.transform<class_Node2D_property_transform>`.
\ **Note:** This is different from the **Bone2D**'s rotation. The bone's angle is the rotation of the bone shown by the gizmo, which is unaffected by the **Bone2D**'s :ref:`Node2D.transform<class_Node2D_property_transform>`.

.. rst-class:: classref-item-separator

Expand Down
Loading