From 8a8bdb6a04b5dacce36d5ac2804eabf19ea208c8 Mon Sep 17 00:00:00 2001 From: Phlegm <152333980+Phlegmlee@users.noreply.github.com> Date: Tue, 7 Oct 2025 23:12:53 -0600 Subject: [PATCH 1/3] Update gdscript_exports.rst Added a description comment to the first example. --- tutorials/scripting/gdscript/gdscript_exports.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutorials/scripting/gdscript/gdscript_exports.rst b/tutorials/scripting/gdscript/gdscript_exports.rst index 8941a766d4f..e39a5326070 100644 --- a/tutorials/scripting/gdscript/gdscript_exports.rst +++ b/tutorials/scripting/gdscript/gdscript_exports.rst @@ -11,9 +11,10 @@ the ``@export`` annotation. :: + ## This is the description. @export var number: int = 5 -In that example the value ``5`` will be saved and visible in the property editor. +In that example the value ``5`` will be saved and visible in the property editor. The description, shown on mouse over in the inspector, is set using a double ``##`` comment directly above the property. An exported variable must be initialized to a constant expression or have a type specifier in the variable. Some of the export annotations have a specific type and don't need the variable to be typed (see the From 95ca178e1b070866efc8ecf40a5a7fa01c37050a Mon Sep 17 00:00:00 2001 From: Phlegm <152333980+Phlegmlee@users.noreply.github.com> Date: Wed, 8 Oct 2025 11:40:31 -0600 Subject: [PATCH 2/3] Update gdscript_exports.rst Changed from a direct example to a documentation reference. --- tutorials/scripting/gdscript/gdscript_exports.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorials/scripting/gdscript/gdscript_exports.rst b/tutorials/scripting/gdscript/gdscript_exports.rst index e39a5326070..302ca7bcfc5 100644 --- a/tutorials/scripting/gdscript/gdscript_exports.rst +++ b/tutorials/scripting/gdscript/gdscript_exports.rst @@ -11,10 +11,9 @@ the ``@export`` annotation. :: - ## This is the description. @export var number: int = 5 -In that example the value ``5`` will be saved and visible in the property editor. The description, shown on mouse over in the inspector, is set using a double ``##`` comment directly above the property. +In that example the value ``5`` will be saved and visible in the property editor. An exported variable must be initialized to a constant expression or have a type specifier in the variable. Some of the export annotations have a specific type and don't need the variable to be typed (see the @@ -23,7 +22,8 @@ in the variable. Some of the export annotations have a specific type and don't n One of the fundamental benefits of exporting member variables is to have them visible and editable in the editor. This way, artists and game designers can modify values that later influence how the program runs. For this, a -special export syntax is provided. +special export syntax is provided. Aditionally, :ref:`documentation` can be +used for tooltip descriptions visible on mouse over. .. note:: From a8e1f503f90df931ac39440d23abf5795a45b292 Mon Sep 17 00:00:00 2001 From: Phlegm <152333980+Phlegmlee@users.noreply.github.com> Date: Wed, 8 Oct 2025 11:43:51 -0600 Subject: [PATCH 3/3] Update gdscript_exports.rst Fixed spelling a grammar errors. --- tutorials/scripting/gdscript/gdscript_exports.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/scripting/gdscript/gdscript_exports.rst b/tutorials/scripting/gdscript/gdscript_exports.rst index 302ca7bcfc5..298c07d6435 100644 --- a/tutorials/scripting/gdscript/gdscript_exports.rst +++ b/tutorials/scripting/gdscript/gdscript_exports.rst @@ -22,8 +22,8 @@ in the variable. Some of the export annotations have a specific type and don't n One of the fundamental benefits of exporting member variables is to have them visible and editable in the editor. This way, artists and game designers can modify values that later influence how the program runs. For this, a -special export syntax is provided. Aditionally, :ref:`documentation` can be -used for tooltip descriptions visible on mouse over. +special export syntax is provided. Additionally, :ref:`documentation` can be +used for tooltip descriptions, visible on mouse over. .. note::