diff --git a/classes/class_classdb.rst b/classes/class_classdb.rst index d222acbc9..59f3c7058 100644 --- a/classes/class_classdb.rst +++ b/classes/class_classdb.rst @@ -19,7 +19,9 @@ A class information repository. Description ----------- -Provides access to metadata stored for every available class. +Provides access to metadata stored for every available engine class. + +\ **Note:** Script-defined classes with ``class_name`` are not part of **ClassDB**, so they will not return reflection data such as a method or property list. However, :ref:`GDExtension`-defined classes *are* part of **ClassDB**, so they will return reflection data. .. rst-class:: classref-reftable-group @@ -439,7 +441,9 @@ Sets ``property`` value of ``object`` to ``value``. :ref:`PackedStringArray` **get_class_list**\ (\ ) |const| :ref:`🔗` -Returns the names of all the classes available. +Returns the names of all engine classes available. + +\ **Note:** Script-defined classes with ``class_name`` are not included in this list. Use :ref:`ProjectSettings.get_global_class_list()` to get a list of script-defined classes instead. .. rst-class:: classref-item-separator @@ -451,7 +455,7 @@ Returns the names of all the classes available. :ref:`PackedStringArray` **get_inheriters_from_class**\ (\ class\: :ref:`StringName`\ ) |const| :ref:`🔗` -Returns the names of all the classes that directly or indirectly inherit from ``class``. +Returns the names of all engine classes that directly or indirectly inherit from ``class``. .. rst-class:: classref-item-separator diff --git a/classes/class_projectsettings.rst b/classes/class_projectsettings.rst index 75bad4063..47c17f535 100644 --- a/classes/class_projectsettings.rst +++ b/classes/class_projectsettings.rst @@ -3004,7 +3004,7 @@ When set to ``warn`` or ``error``, produces a warning or an error respectively w :ref:`int` **debug/gdscript/warnings/inferred_declaration** = ``0`` :ref:`🔗` -When set to ``warn`` or ``error``, produces a warning or an error respectively when a variable, constant, or parameter has an implicitly inferred static type. +When set to ``warn`` or ``error``, produces a warning or an error respectively when a variable, constant, or parameter has an implicitly inferred static type. In GDScript, type inference is performed by declaring a variable with ``:=`` instead of ``=`` and leaving out the type specifier. For example, ``var x := 1`` will *infer* the :ref:`int` type, while ``var x: int = 1`` explicitly declares the variable as :ref:`int`. \ **Note:** This warning is recommended *in addition* to :ref:`debug/gdscript/warnings/untyped_declaration` if you want to always specify the type explicitly. Having ``INFERRED_DECLARATION`` warning level higher than ``UNTYPED_DECLARATION`` warning level makes little sense and is not recommended. @@ -13515,7 +13515,7 @@ The ratio of :ref:`WorkerThreadPool`'s threads that will :ref:`int` **threading/worker_pool/max_threads** = ``-1`` :ref:`🔗` -Maximum number of threads to be used by :ref:`WorkerThreadPool`. Value of ``0`` or less means ``1`` on Web, or a number of *logical* CPU cores available on other platforms (see :ref:`OS.get_processor_count()`). +Maximum number of threads to be used by :ref:`WorkerThreadPool`. Value of ``-1`` means ``1`` on Web, or a number of *logical* CPU cores available on other platforms (see :ref:`OS.get_processor_count()`). .. rst-class:: classref-item-separator diff --git a/classes/class_sprite2d.rst b/classes/class_sprite2d.rst index b1704ab61..507ebe78b 100644 --- a/classes/class_sprite2d.rst +++ b/classes/class_sprite2d.rst @@ -250,6 +250,8 @@ The texture's drawing offset. If ``true``, texture is cut from a larger atlas texture. See :ref:`region_rect`. +\ **Note:** When using a custom :ref:`Shader` on a **Sprite2D**, the ``UV`` shader built-in will refer to the entire texture space. Use the ``REGION_RECT`` built-in to get the currently visible region defined in :ref:`region_rect` instead. See :doc:`CanvasItem shaders <../tutorials/shaders/shader_reference/canvas_item_shader>` for details. + .. rst-class:: classref-item-separator ----