You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: classes/[email protected]
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7285,6 +7285,8 @@ Encodes a :ref:`Variant<class_Variant>` value to a byte array, without encoding
7285
7285
7286
7286
\ **Note:** If you need object serialization, see :ref:`var_to_bytes_with_objects<class_@GlobalScope_method_var_to_bytes_with_objects>`.
7287
7287
7288
+
\ **Note:** Encoding :ref:`Callable<class_Callable>` is not supported and will result in an empty value, regardless of the data.
7289
+
7288
7290
.. rst-class:: classref-item-separator
7289
7291
7290
7292
----
@@ -7297,6 +7299,8 @@ Encodes a :ref:`Variant<class_Variant>` value to a byte array, without encoding
7297
7299
7298
7300
Encodes a :ref:`Variant<class_Variant>` value to a byte array. Encoding objects is allowed (and can potentially include executable code). Deserialization can be done with :ref:`bytes_to_var_with_objects<class_@GlobalScope_method_bytes_to_var_with_objects>`.
7299
7301
7302
+
\ **Note:** Encoding :ref:`Callable<class_Callable>` is not supported and will result in an empty value, regardless of the data.
Emitted when a scene was saved on disc. The argument is a file path to the saved scene. See also :ref:`resource_saved<class_EditorPlugin_signal_resource_saved>`.
Copy file name to clipboardExpand all lines: classes/class_engine.rst
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -542,8 +542,6 @@ Returns the current engine version information in a Dictionary.
542
542
543
543
\ ``hash`` - Holds the full Git commit hash as a String
544
544
545
-
\ ``year`` - Holds the year the version was released in as an int
546
-
547
545
\ ``string`` - ``major`` + ``minor`` + ``patch`` + ``status`` + ``build`` in a single String
548
546
549
547
The ``hex`` value is encoded as follows, from left to right: one byte for the major, one byte for the minor, one byte for the patch version. For example, "3.1.12" would be ``0x03010C``. **Note:** It's still an int internally, and printing it will give you its decimal representation, which is not particularly meaningful. Use hexadecimal literals for easy version comparisons from code:
The number of additional :ref:`OptionButton<class_OptionButton>`\ s and :ref:`CheckBox<class_CheckBox>`\ es in the dialog.
400
+
401
+
.. rst-class:: classref-item-separator
402
+
403
+
----
404
+
370
405
.. _class_FileDialog_property_root_subfolder:
371
406
372
407
.. rst-class:: classref-property
@@ -441,6 +476,18 @@ For example, a ``filter`` of ``"*.png, *.jpg"`` and a ``description`` of ``"Imag
441
476
442
477
----
443
478
479
+
.. _class_FileDialog_method_add_option:
480
+
481
+
.. rst-class:: classref-method
482
+
483
+
void **add_option** **(** :ref:`String<class_String>` name, :ref:`PackedStringArray<class_PackedStringArray>` values, :ref:`int<class_int>` index **)**
484
+
485
+
Adds an additional :ref:`OptionButton<class_OptionButton>` to the file dialog. If ``values`` is empty, a :ref:`CheckBox<class_CheckBox>` is added instead.
486
+
487
+
.. rst-class:: classref-item-separator
488
+
489
+
----
490
+
444
491
.. _class_FileDialog_method_clear_filters:
445
492
446
493
.. rst-class:: classref-method
@@ -479,6 +526,54 @@ Returns the LineEdit for the selected file.
Returns a :ref:`Dictionary<class_Dictionary>` with the selected values of the additional :ref:`OptionButton<class_OptionButton>`\ s and/or :ref:`CheckBox<class_CheckBox>`\ es. :ref:`Dictionary<class_Dictionary>` keys are names and values are selected value indices.
0 commit comments