Skip to content
Open
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
46 changes: 26 additions & 20 deletions classes/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -3615,7 +3615,7 @@ Hints that a :ref:`Color<class_Color>` property should be edited without affecti

:ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_OBJECT_ID** = ``22``


Hints that the property's value is an object encoded as object ID, with its type specified in the hint string. Used by the debugger.

.. _class_@GlobalScope_constant_PROPERTY_HINT_TYPE_STRING:

Expand Down Expand Up @@ -3698,63 +3698,65 @@ Examples:

:ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE** = ``24``


*Deprecated.* This hint is not used anywhere and will be removed in the future.

.. _class_@GlobalScope_constant_PROPERTY_HINT_OBJECT_TOO_BIG:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_OBJECT_TOO_BIG** = ``25``


Hints that an object is too big to be sent via the debugger.

.. _class_@GlobalScope_constant_PROPERTY_HINT_NODE_PATH_VALID_TYPES:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_NODE_PATH_VALID_TYPES** = ``26``


Hints that the hint string specifies valid node types for property of type :ref:`NodePath<class_NodePath>`.

.. _class_@GlobalScope_constant_PROPERTY_HINT_SAVE_FILE:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_SAVE_FILE** = ``27``


Hints that a :ref:`String<class_String>` property is a path to a file. Editing it will show a file dialog for picking the path for the file to be saved at. The dialog has access to the project's directory. The hint string can be a set of filters with wildcards like ``"*.png,*.jpg"``. See also :ref:`FileDialog.filters<class_FileDialog_property_filters>`.

.. _class_@GlobalScope_constant_PROPERTY_HINT_GLOBAL_SAVE_FILE:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_GLOBAL_SAVE_FILE** = ``28``


Hints that a :ref:`String<class_String>` property is a path to a file. Editing it will show a file dialog for picking the path for the file to be saved at. The dialog has access to the entire filesystem. The hint string can be a set of filters with wildcards like ``"*.png,*.jpg"``. See also :ref:`FileDialog.filters<class_FileDialog_property_filters>`.

.. _class_@GlobalScope_constant_PROPERTY_HINT_INT_IS_OBJECTID:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_INT_IS_OBJECTID** = ``29``

Hints that an :ref:`int<class_int>` property is an object ID.

\ *Deprecated.* This hint is not used anywhere and will be removed in the future.

.. _class_@GlobalScope_constant_PROPERTY_HINT_INT_IS_POINTER:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_INT_IS_POINTER** = ``30``


Hints that an :ref:`int<class_int>` property is a pointer. Used by GDExtension.

.. _class_@GlobalScope_constant_PROPERTY_HINT_ARRAY_TYPE:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_ARRAY_TYPE** = ``31``


Hints that a property is an :ref:`Array<class_Array>` with the stored type specified in the hint string.

.. _class_@GlobalScope_constant_PROPERTY_HINT_LOCALE_ID:

Expand All @@ -3778,7 +3780,7 @@ Hints that a dictionary property is string translation map. Dictionary keys are

:ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_NODE_TYPE** = ``34``


Hints that a property is an instance of a :ref:`Node<class_Node>`-derived type, optionally specified via the hint string (e.g. ``"Node2D"``). Editing it will show a dialog for picking a node from the scene.

.. _class_@GlobalScope_constant_PROPERTY_HINT_HIDE_QUATERNION_EDIT:

Expand Down Expand Up @@ -3892,7 +3894,7 @@ Used to group properties together in the editor in a subgroup (under a group). S

:ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_CLASS_IS_BITFIELD** = ``512``


The property is a bitfield, i.e. it contains multiple flags represented as bits.

.. _class_@GlobalScope_constant_PROPERTY_USAGE_NO_INSTANCE_STATE:

Expand Down Expand Up @@ -3924,39 +3926,41 @@ The property is a script variable which should be serialized and saved in the sc

:ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_STORE_IF_NULL** = ``8192``


The property value of type :ref:`Object<class_Object>` will be stored even if its value is ``null``.

.. _class_@GlobalScope_constant_PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED** = ``16384``


If this property is modified, all inspector fields will be refreshed.

.. _class_@GlobalScope_constant_PROPERTY_USAGE_SCRIPT_DEFAULT_VALUE:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_SCRIPT_DEFAULT_VALUE** = ``32768``

Signifies a default value from a placeholder script instance.

\ *Deprecated.* This hint is not used anywhere and will be removed in the future.

.. _class_@GlobalScope_constant_PROPERTY_USAGE_CLASS_IS_ENUM:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_CLASS_IS_ENUM** = ``65536``


The property is an enum, i.e. it only takes named integer constants from its associated enumeration.

.. _class_@GlobalScope_constant_PROPERTY_USAGE_NIL_IS_VARIANT:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_NIL_IS_VARIANT** = ``131072``


If property has ``nil`` as default value, its type will be :ref:`Variant<class_Variant>`.

.. _class_@GlobalScope_constant_PROPERTY_USAGE_ARRAY:

Expand Down Expand Up @@ -3996,47 +4000,49 @@ The property is only shown in the editor if modern renderers are supported (the

:ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_NODE_PATH_FROM_SCENE_ROOT** = ``4194304``


The :ref:`NodePath<class_NodePath>` property will always be relative to the scene's root. Mostly useful for local resources.

.. _class_@GlobalScope_constant_PROPERTY_USAGE_RESOURCE_NOT_PERSISTENT:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_RESOURCE_NOT_PERSISTENT** = ``8388608``


Use when a resource is created on the fly, i.e. the getter will always return a different instance. :ref:`ResourceSaver<class_ResourceSaver>` needs this information to properly save such resources.

.. _class_@GlobalScope_constant_PROPERTY_USAGE_KEYING_INCREMENTS:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_KEYING_INCREMENTS** = ``16777216``


Inserting an animation key frame of this property will automatically increment the value, allowing to easily keyframe multiple values in a row.

.. _class_@GlobalScope_constant_PROPERTY_USAGE_DEFERRED_SET_RESOURCE:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_DEFERRED_SET_RESOURCE** = ``33554432``

When loading, the resource for this property can be set at the end of loading.

\ *Deprecated.* This hint is not used anywhere and will be removed in the future.

.. _class_@GlobalScope_constant_PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT** = ``67108864``


When this property is a :ref:`Resource<class_Resource>` and base object is a :ref:`Node<class_Node>`, a resource instance will be automatically created whenever the node is created in the editor.

.. _class_@GlobalScope_constant_PROPERTY_USAGE_EDITOR_BASIC_SETTING:

.. rst-class:: classref-enumeration-constant

:ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_EDITOR_BASIC_SETTING** = ``134217728``


The property is considered a basic setting and will appear even when advanced mode is disabled. Used for project settings.

.. _class_@GlobalScope_constant_PROPERTY_USAGE_READ_ONLY:

Expand Down Expand Up @@ -7347,7 +7353,7 @@ Prints:

:ref:`Variant<class_Variant>` **weakref** **(** :ref:`Variant<class_Variant>` obj **)**

Returns a weak reference to an object, or ``null`` if ``obj`` is invalid.
Returns a :ref:`WeakRef<class_WeakRef>` instance holding a weak reference to ``obj``. Returns an empty :ref:`WeakRef<class_WeakRef>` instance if ``obj`` is ``null``. Prints an error and returns ``null`` if ``obj`` is neither :ref:`Object<class_Object>`-derived nor ``null``.

A weak reference to an object is not enough to keep the object alive: when the only remaining references to a referent are weak references, garbage collection is free to destroy the referent and reuse its memory for something else. However, until the object is actually destroyed the weak reference may return the object even if there are no strong references to it.

Expand Down
7 changes: 7 additions & 0 deletions classes/class_audiostreamoggvorbis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ Description

The AudioStreamOggVorbis class is a specialized :ref:`AudioStream<class_AudioStream>` for handling Ogg Vorbis file formats. It offers functionality for loading and playing back Ogg Vorbis files, as well as managing looping and other playback properties. This class is part of the audio stream system, which also supports WAV files through the :ref:`AudioStreamWAV<class_AudioStreamWAV>` class.

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

Tutorials
---------

- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`

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

Properties
Expand Down
7 changes: 7 additions & 0 deletions classes/class_audiostreamwav.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ AudioStreamWAV stores sound samples loaded from WAV files. To play the stored so

This class can also be used to store dynamically-generated PCM audio data. See also :ref:`AudioStreamGenerator<class_AudioStreamGenerator>` for procedural audio generation.

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

Tutorials
---------

- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`

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

Properties
Expand Down
2 changes: 1 addition & 1 deletion classes/class_cpuparticles2d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ Particles are drawn in the order emitted.

:ref:`DrawOrder<enum_CPUParticles2D_DrawOrder>` **DRAW_ORDER_LIFETIME** = ``1``

Particles are drawn in order of remaining lifetime.
Particles are drawn in order of remaining lifetime. In other words, the particle with the highest lifetime is drawn at the front.

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

Expand Down
2 changes: 1 addition & 1 deletion classes/class_cpuparticles3d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ Particles are drawn in the order emitted.

:ref:`DrawOrder<enum_CPUParticles3D_DrawOrder>` **DRAW_ORDER_LIFETIME** = ``1``

Particles are drawn in order of remaining lifetime.
Particles are drawn in order of remaining lifetime. In other words, the particle with the highest lifetime is drawn at the front.

.. _class_CPUParticles3D_constant_DRAW_ORDER_VIEW_DEPTH:

Expand Down
2 changes: 2 additions & 0 deletions classes/class_fileaccess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ Tutorials

- :doc:`File system <../tutorials/scripting/filesystem>`

- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`

- `3D Voxel Demo <https://godotengine.org/asset-library/asset/676>`__

.. rst-class:: classref-reftable-group
Expand Down
7 changes: 7 additions & 0 deletions classes/class_fontfile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ Supported font formats:



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

Tutorials
---------

- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`

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

Properties
Expand Down
7 changes: 7 additions & 0 deletions classes/class_gltfaccessor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ GLTFAccessor

There is currently no description for this class. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!

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

Tutorials
---------

- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`

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

Properties
Expand Down
7 changes: 7 additions & 0 deletions classes/class_gltfanimation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ GLTFAnimation

There is currently no description for this class. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!

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

Tutorials
---------

- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`

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

Properties
Expand Down
7 changes: 7 additions & 0 deletions classes/class_gltfbufferview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ GLTFBufferView

There is currently no description for this class. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!

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

Tutorials
---------

- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`

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

Properties
Expand Down
2 changes: 2 additions & 0 deletions classes/class_gltfcamera.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Represents a camera as defined by the base GLTF spec.
Tutorials
---------

- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`

- `GLTF camera detailed specification <https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#reference-camera>`__

- `GLTF camera spec and example file <https://github.com/KhronosGroup/glTF-Tutorials/blob/master/gltfTutorial/gltfTutorial_015_SimpleCameras.md>`__
Expand Down
2 changes: 2 additions & 0 deletions classes/class_gltfdocument.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ GLTFDocument can be extended with arbitrary functionality by extending the :ref:
Tutorials
---------

- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`

- `glTF 'What the duck?' guide <https://www.khronos.org/files/gltf20-reference-guide.pdf>`__

- `Khronos glTF specification <https://registry.khronos.org/glTF/>`__
Expand Down
7 changes: 7 additions & 0 deletions classes/class_gltfdocumentextension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ To use, make a new class extending GLTFDocumentExtension, override any methods y

\ **Note:** Like GLTFDocument itself, all GLTFDocumentExtension classes must be stateless in order to function properly. If you need to store data, use the ``set_additional_data`` and ``get_additional_data`` methods in :ref:`GLTFState<class_GLTFState>` or :ref:`GLTFNode<class_GLTFNode>`.

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

Tutorials
---------

- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`

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

Methods
Expand Down
7 changes: 7 additions & 0 deletions classes/class_gltfdocumentextensionconvertimportermesh.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ GLTFDocumentExtensionConvertImporterMesh

There is currently no description for this class. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!

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

Tutorials
---------

- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`

.. |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.)`
.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
Expand Down
2 changes: 2 additions & 0 deletions classes/class_gltflight.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Represents a light as defined by the ``KHR_lights_punctual`` GLTF extension.
Tutorials
---------

- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`

- `KHR_lights_punctual GLTF extension spec <https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_lights_punctual>`__

.. rst-class:: classref-reftable-group
Expand Down
7 changes: 7 additions & 0 deletions classes/class_gltfmesh.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ GLTFMesh

There is currently no description for this class. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!

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

Tutorials
---------

- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`

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

Properties
Expand Down
2 changes: 2 additions & 0 deletions classes/class_gltfnode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ GLTF nodes generally exist inside of :ref:`GLTFState<class_GLTFState>` which rep
Tutorials
---------

- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`

- `GLTF scene and node spec <https://github.com/KhronosGroup/glTF-Tutorials/blob/master/gltfTutorial/gltfTutorial_004_ScenesNodes.md">`__

.. rst-class:: classref-reftable-group
Expand Down
Loading