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
34 changes: 33 additions & 1 deletion classes/class_@globalscope.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ Properties
+---------------------------------------------------------------+-------------------------------------------------------------------------------------+
| :ref:`JavaScriptBridge<class_JavaScriptBridge>` | :ref:`JavaScriptBridge<class_@GlobalScope_property_JavaScriptBridge>` |
+---------------------------------------------------------------+-------------------------------------------------------------------------------------+
| :ref:`MCPBridge<class_MCPBridge>` | :ref:`MCPBridge<class_@GlobalScope_property_MCPBridge>` |
+---------------------------------------------------------------+-------------------------------------------------------------------------------------+
| :ref:`MCPServer<class_MCPServer>` | :ref:`MCPServer<class_@GlobalScope_property_MCPServer>` |
+---------------------------------------------------------------+-------------------------------------------------------------------------------------+
| :ref:`Marshalls<class_Marshalls>` | :ref:`Marshalls<class_@GlobalScope_property_Marshalls>` |
+---------------------------------------------------------------+-------------------------------------------------------------------------------------+
| :ref:`NativeMenu<class_NativeMenu>` | :ref:`NativeMenu<class_@GlobalScope_property_NativeMenu>` |
Expand Down Expand Up @@ -5026,6 +5030,34 @@ The :ref:`JavaScriptBridge<class_JavaScriptBridge>` singleton.

----

.. _class_@GlobalScope_property_MCPBridge:

.. rst-class:: classref-property

:ref:`MCPBridge<class_MCPBridge>` **MCPBridge** :ref:`🔗<class_@GlobalScope_property_MCPBridge>`

.. container:: contribute

There is currently no description for this property. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

----

.. _class_@GlobalScope_property_MCPServer:

.. rst-class:: classref-property

:ref:`MCPServer<class_MCPServer>` **MCPServer** :ref:`🔗<class_@GlobalScope_property_MCPServer>`

.. container:: contribute

There is currently no description for this property. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

----

.. _class_@GlobalScope_property_Marshalls:

.. rst-class:: classref-property
Expand Down Expand Up @@ -5995,7 +6027,7 @@ Returns the :ref:`Object<class_Object>` that corresponds to ``instance_id``. All
func _ready():
var id = get_instance_id()
var instance = instance_from_id(id)
print(instance.foo) # Prints "water"
print(instance.drink) # Prints "water"

.. code-tab:: csharp

Expand Down
12 changes: 9 additions & 3 deletions classes/class_array.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ A built-in data structure that holds a sequence of elements.
Description
-----------

An array data structure that can contain a sequence of elements of any :ref:`Variant<class_Variant>` type. Elements are accessed by a numerical index starting at ``0``. Negative indices are used to count from the back (``-1`` is the last element, ``-2`` is the second to last, etc.).
An array data structure that can contain a sequence of elements of any :ref:`Variant<class_Variant>` type by default. Values can optionally be constrained to a specific type by creating a *typed array*. Elements are accessed by a numerical index starting at ``0``. Negative indices are used to count from the back (``-1`` is the last element, ``-2`` is the second to last, etc.).


.. tabs::
Expand All @@ -33,6 +33,10 @@ An array data structure that can contain a sequence of elements of any :ref:`Var
print(array[1]) # Prints "Second"
print(array[-3]) # Prints "Second"

# This typed array can only contain integers.
# Attempting to add any other type will result in an error.
var typed_array: Array[int] = [1, 2, 3]

.. code-tab:: csharp

Godot.Collections.Array array = ["First", 2, 3, "Last"];
Expand All @@ -44,6 +48,10 @@ An array data structure that can contain a sequence of elements of any :ref:`Var
GD.Print(array[1]); // Prints "Second"
GD.Print(array[^3]); // Prints "Second"

// This typed array can only contain integers.
// Attempting to add any other type will result in an error.
Godot.Collections.Array<int> typedArray = [1, 2, 3];



\ **Note:** Arrays are always passed by **reference**. To get a copy of an array that can be modified independently of the original array, use :ref:`duplicate()<class_Array_method_duplicate>`.
Expand Down Expand Up @@ -1229,8 +1237,6 @@ If you need to return the removed element, use :ref:`pop_at()<class_Array_method

\ **Note:** This method shifts every element's index after ``position`` back, which may have a noticeable performance cost, especially on larger arrays.

\ **Note:** The ``position`` cannot be negative. To remove an element relative to the end of the array, use ``arr.remove_at(arr.size() - (i + 1))``. To remove the last element from the array, use ``arr.resize(arr.size() - 1)``.

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

----
Expand Down
6 changes: 3 additions & 3 deletions classes/class_arraymesh.rst
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ Sets a name for a given surface.

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -450,7 +450,7 @@ Sets a name for a given surface.

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -464,7 +464,7 @@ Sets a name for a given surface.

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
Expand Down
24 changes: 12 additions & 12 deletions classes/class_audioeffectchorus.rst
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ Method Descriptions

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -621,7 +621,7 @@ Method Descriptions

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -635,7 +635,7 @@ Method Descriptions

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -649,7 +649,7 @@ Method Descriptions

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -663,7 +663,7 @@ Method Descriptions

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -677,7 +677,7 @@ Method Descriptions

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -691,7 +691,7 @@ Method Descriptions

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -705,7 +705,7 @@ Method Descriptions

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -719,7 +719,7 @@ Method Descriptions

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -733,7 +733,7 @@ Method Descriptions

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -747,7 +747,7 @@ Method Descriptions

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -761,7 +761,7 @@ Method Descriptions

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
Expand Down
2 changes: 1 addition & 1 deletion classes/class_audioeffectdistortion.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Digital distortion effect which cuts off peaks at the top and bottom of the wave

.. container:: contribute

There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!



Expand Down
2 changes: 1 addition & 1 deletion classes/class_audioeffectlimiter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Applies a gain to the limited waves, in decibels. Value can range from 0 to 6.

.. container:: contribute

There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this property. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand Down
2 changes: 1 addition & 1 deletion classes/class_audioeffectspectrumanalyzer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ The size of the `Fast Fourier transform <https://en.wikipedia.org/wiki/Fast_Four

.. container:: contribute

There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this property. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
Expand Down
6 changes: 3 additions & 3 deletions classes/class_audiostreammp3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Property Descriptions

.. container:: contribute

There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this property. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -100,7 +100,7 @@ Property Descriptions

.. container:: contribute

There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this property. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -119,7 +119,7 @@ Property Descriptions

.. container:: contribute

There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this property. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand Down
6 changes: 3 additions & 3 deletions classes/class_audiostreamoggvorbis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Property Descriptions

.. container:: contribute

There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this property. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -107,7 +107,7 @@ Property Descriptions

.. container:: contribute

There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this property. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -126,7 +126,7 @@ Property Descriptions

.. container:: contribute

There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this property. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

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

.. container:: contribute

There is currently no description for this class. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this class. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
Expand Down
8 changes: 4 additions & 4 deletions classes/class_audiostreamplaybackresampled.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ AudioStreamPlaybackResampled

.. container:: contribute

There is currently no description for this class. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this class. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

.. rst-class:: classref-reftable-group

Expand Down Expand Up @@ -51,7 +51,7 @@ Method Descriptions

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -65,7 +65,7 @@ Method Descriptions

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

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

Expand All @@ -79,7 +79,7 @@ Method Descriptions

.. container:: contribute

There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
Expand Down
2 changes: 1 addition & 1 deletion classes/class_audiostreamplaybacksynchronized.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ AudioStreamPlaybackSynchronized

.. container:: contribute

There is currently no description for this class. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
There is currently no description for this class. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!

.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
Expand Down
2 changes: 2 additions & 0 deletions classes/class_basematerial3d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3437,6 +3437,8 @@ The stencil reference value (0-255). Typically a power of 2.

If ``true``, subsurface scattering is enabled. Emulates light that penetrates an object's surface, is scattered, and then emerges. Subsurface scattering quality is controlled by :ref:`ProjectSettings.rendering/environment/subsurface_scattering/subsurface_scattering_quality<class_ProjectSettings_property_rendering/environment/subsurface_scattering/subsurface_scattering_quality>`.

\ **Note:** Subsurface scattering is not supported on viewports that have a transparent background (where :ref:`Viewport.transparent_bg<class_Viewport_property_transparent_bg>` is ``true``).

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

----
Expand Down
Loading