Skip to content

Commit c084470

Browse files
author
Godot Organization
committed
classref: Sync with current master branch (c3b0a92)
1 parent 696c519 commit c084470

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

classes/class_camera3d.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ Methods
7979
+---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
8080
| void | :ref:`clear_current<class_Camera3D_method_clear_current>` **(** :ref:`bool<class_bool>` enable_next=true **)** |
8181
+---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
82+
| :ref:`Projection<class_Projection>` | :ref:`get_camera_projection<class_Camera3D_method_get_camera_projection>` **(** **)** |const| |
83+
+---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
8284
| :ref:`RID<class_RID>` | :ref:`get_camera_rid<class_Camera3D_method_get_camera_rid>` **(** **)** |const| |
8385
+---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
8486
| :ref:`Transform3D<class_Transform3D>` | :ref:`get_camera_transform<class_Camera3D_method_get_camera_transform>` **(** **)** |const| |
@@ -497,6 +499,18 @@ If this is the current camera, remove it from being current. If ``enable_next``
497499

498500
----
499501

502+
.. _class_Camera3D_method_get_camera_projection:
503+
504+
.. rst-class:: classref-method
505+
506+
:ref:`Projection<class_Projection>` **get_camera_projection** **(** **)** |const|
507+
508+
Returns the projection matrix that this camera uses to render to its associated viewport. The camera must be part of the scene tree to function.
509+
510+
.. rst-class:: classref-item-separator
511+
512+
----
513+
500514
.. _class_Camera3D_method_get_camera_rid:
501515

502516
.. rst-class:: classref-method

classes/class_gradient.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ Property Descriptions
164164

165165
Gradient's colors returned as a :ref:`PackedColorArray<class_PackedColorArray>`.
166166

167+
\ **Note:** This property returns a copy, modifying the return value does not update the gradient. To update the gradient use :ref:`set_color<class_Gradient_method_set_color>` method (for updating colors individually) or assign to this property directly (for bulk-updating all colors at once).
168+
167169
.. rst-class:: classref-item-separator
168170

169171
----
@@ -217,6 +219,8 @@ The algorithm used to interpolate between points of the gradient. See :ref:`Inte
217219

218220
Gradient's offsets returned as a :ref:`PackedFloat32Array<class_PackedFloat32Array>`.
219221

222+
\ **Note:** This property returns a copy, modifying the return value does not update the gradient. To update the gradient use :ref:`set_offset<class_Gradient_method_set_offset>` method (for updating offsets individually) or assign to this property directly (for bulk-updating all offsets at once).
223+
220224
.. rst-class:: classref-section-separator
221225

222226
----

classes/class_os.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ If ``file_or_dir_path`` is a valid directory path, and ``open_folder`` is ``true
14631463

14641464
Use :ref:`ProjectSettings.globalize_path<class_ProjectSettings_method_globalize_path>` to convert a ``res://`` or ``user://`` path into a system path for use with this method.
14651465

1466-
\ **Note:** Currently this method is only implemented on Windows. On other platforms, it will fallback to :ref:`shell_open<class_OS_method_shell_open>` with a directory path for ``file_or_dir_path``.
1466+
\ **Note:** Currently this method is only implemented on Windows and macOS. On other platforms, it will fallback to :ref:`shell_open<class_OS_method_shell_open>` with a directory path of ``file_or_dir_path`` with prefix ``file://``.
14671467

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

classes/class_string.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,11 +1780,11 @@ Converts the string representing a decimal number into a :ref:`float<class_float
17801780

17811781
::
17821782

1783-
var a = "12.35".to_float() # a is 12.35
1784-
var b = "1.2.3".to_float() # b is 1.2
1785-
var c = "12xy3".to_float() # c is 12.0
1786-
var d = "1e3".to_float() # d is 1000.0
1787-
var e = "Hello!".to_int() # e is 0.0
1783+
var a = "12.35".to_float() # a is 12.35
1784+
var b = "1.2.3".to_float() # b is 1.2
1785+
var c = "12xy3".to_float() # c is 12.0
1786+
var d = "1e3".to_float() # d is 1000.0
1787+
var e = "Hello!".to_float() # e is 0.0
17881788

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

@@ -2017,7 +2017,7 @@ Returns a copy of the string with all characters that are not allowed in :ref:`i
20172017

20182018
:ref:`String<class_String>` **validate_node_name** **(** **)** |const|
20192019

2020-
Returns a copy of the string with all characters that are not allowed in :ref:`Node.name<class_Node_property_name>` removed (``.`` ``:`` ``@`` ``/`` ``"`` ``%``).
2020+
Returns a copy of the string with all characters that are not allowed in :ref:`Node.name<class_Node_property_name>` (``.`` ``:`` ``@`` ``/`` ``"`` ``%``) replaced with underscores.
20212021

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

classes/class_stringname.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,7 @@ Returns a copy of the string with all characters that are not allowed in :ref:`i
18601860

18611861
:ref:`String<class_String>` **validate_node_name** **(** **)** |const|
18621862

1863-
Returns a copy of the string with all characters that are not allowed in :ref:`Node.name<class_Node_property_name>` removed (``.`` ``:`` ``@`` ``/`` ``"`` ``%``).
1863+
Returns a copy of the string with all characters that are not allowed in :ref:`Node.name<class_Node_property_name>` (``.`` ``:`` ``@`` ``/`` ``"`` ``%``) replaced with underscores.
18641864

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

0 commit comments

Comments
 (0)