Skip to content

Commit c5d7e49

Browse files
authored
Merge pull request godotengine#8496 from godotengine/classref/sync-80de898
classref: Sync with current master branch (80de898)
2 parents 9be7839 + 3c2eef1 commit c5d7e49

34 files changed

+174
-38
lines changed

classes/[email protected]

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3615,7 +3615,7 @@ Hints that a :ref:`Color<class_Color>` property should be edited without affecti
36153615

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

3618-
3618+
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.
36193619

36203620
.. _class_@GlobalScope_constant_PROPERTY_HINT_TYPE_STRING:
36213621

@@ -3698,63 +3698,65 @@ Examples:
36983698

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

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

37033703
.. _class_@GlobalScope_constant_PROPERTY_HINT_OBJECT_TOO_BIG:
37043704

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

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

3709-
3709+
Hints that an object is too big to be sent via the debugger.
37103710

37113711
.. _class_@GlobalScope_constant_PROPERTY_HINT_NODE_PATH_VALID_TYPES:
37123712

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

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

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

37193719
.. _class_@GlobalScope_constant_PROPERTY_HINT_SAVE_FILE:
37203720

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

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

3725-
3725+
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>`.
37263726

37273727
.. _class_@GlobalScope_constant_PROPERTY_HINT_GLOBAL_SAVE_FILE:
37283728

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

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

3733-
3733+
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>`.
37343734

37353735
.. _class_@GlobalScope_constant_PROPERTY_HINT_INT_IS_OBJECTID:
37363736

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

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

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

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

37433745
.. _class_@GlobalScope_constant_PROPERTY_HINT_INT_IS_POINTER:
37443746

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

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

3749-
3751+
Hints that an :ref:`int<class_int>` property is a pointer. Used by GDExtension.
37503752

37513753
.. _class_@GlobalScope_constant_PROPERTY_HINT_ARRAY_TYPE:
37523754

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

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

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

37593761
.. _class_@GlobalScope_constant_PROPERTY_HINT_LOCALE_ID:
37603762

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

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

3781-
3783+
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.
37823784

37833785
.. _class_@GlobalScope_constant_PROPERTY_HINT_HIDE_QUATERNION_EDIT:
37843786

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

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

3895-
3897+
The property is a bitfield, i.e. it contains multiple flags represented as bits.
38963898

38973899
.. _class_@GlobalScope_constant_PROPERTY_USAGE_NO_INSTANCE_STATE:
38983900

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

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

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

39293931
.. _class_@GlobalScope_constant_PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED:
39303932

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

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

3935-
3937+
If this property is modified, all inspector fields will be refreshed.
39363938

39373939
.. _class_@GlobalScope_constant_PROPERTY_USAGE_SCRIPT_DEFAULT_VALUE:
39383940

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

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

3945+
Signifies a default value from a placeholder script instance.
39433946

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

39453949
.. _class_@GlobalScope_constant_PROPERTY_USAGE_CLASS_IS_ENUM:
39463950

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

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

3951-
3955+
The property is an enum, i.e. it only takes named integer constants from its associated enumeration.
39523956

39533957
.. _class_@GlobalScope_constant_PROPERTY_USAGE_NIL_IS_VARIANT:
39543958

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

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

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

39613965
.. _class_@GlobalScope_constant_PROPERTY_USAGE_ARRAY:
39623966

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

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

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

40014005
.. _class_@GlobalScope_constant_PROPERTY_USAGE_RESOURCE_NOT_PERSISTENT:
40024006

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

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

4007-
4011+
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.
40084012

40094013
.. _class_@GlobalScope_constant_PROPERTY_USAGE_KEYING_INCREMENTS:
40104014

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

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

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

40174021
.. _class_@GlobalScope_constant_PROPERTY_USAGE_DEFERRED_SET_RESOURCE:
40184022

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

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

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

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

40254031
.. _class_@GlobalScope_constant_PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT:
40264032

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

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

4031-
4037+
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.
40324038

40334039
.. _class_@GlobalScope_constant_PROPERTY_USAGE_EDITOR_BASIC_SETTING:
40344040

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

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

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

40414047
.. _class_@GlobalScope_constant_PROPERTY_USAGE_READ_ONLY:
40424048

@@ -7347,7 +7353,7 @@ Prints:
73477353

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

7350-
Returns a weak reference to an object, or ``null`` if ``obj`` is invalid.
7356+
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``.
73517357

73527358
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.
73537359

classes/class_audiostreamoggvorbis.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ Description
2121

2222
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.
2323

24+
.. rst-class:: classref-introduction-group
25+
26+
Tutorials
27+
---------
28+
29+
- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`
30+
2431
.. rst-class:: classref-reftable-group
2532

2633
Properties

classes/class_audiostreamwav.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ AudioStreamWAV stores sound samples loaded from WAV files. To play the stored so
2323

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

26+
.. rst-class:: classref-introduction-group
27+
28+
Tutorials
29+
---------
30+
31+
- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`
32+
2633
.. rst-class:: classref-reftable-group
2734

2835
Properties

classes/class_cpuparticles2d.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ Particles are drawn in the order emitted.
246246

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

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

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

classes/class_cpuparticles3d.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Particles are drawn in the order emitted.
262262

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

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

267267
.. _class_CPUParticles3D_constant_DRAW_ORDER_VIEW_DEPTH:
268268

classes/class_fileaccess.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ Tutorials
6969

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

72+
- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`
73+
7274
- `3D Voxel Demo <https://godotengine.org/asset-library/asset/676>`__
7375

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

classes/class_fontfile.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ Supported font formats:
5656

5757

5858

59+
.. rst-class:: classref-introduction-group
60+
61+
Tutorials
62+
---------
63+
64+
- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`
65+
5966
.. rst-class:: classref-reftable-group
6067

6168
Properties

classes/class_gltfaccessor.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ GLTFAccessor
1616

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

19+
.. rst-class:: classref-introduction-group
20+
21+
Tutorials
22+
---------
23+
24+
- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`
25+
1926
.. rst-class:: classref-reftable-group
2027

2128
Properties

classes/class_gltfanimation.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ GLTFAnimation
1616

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

19+
.. rst-class:: classref-introduction-group
20+
21+
Tutorials
22+
---------
23+
24+
- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`
25+
1926
.. rst-class:: classref-reftable-group
2027

2128
Properties

classes/class_gltfbufferview.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ GLTFBufferView
1616

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

19+
.. rst-class:: classref-introduction-group
20+
21+
Tutorials
22+
---------
23+
24+
- :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`
25+
1926
.. rst-class:: classref-reftable-group
2027

2128
Properties

0 commit comments

Comments
 (0)