mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Merge pull request #9188 from allenwp/annotation-improvements
Improve description of annotations
This commit is contained in:
@@ -450,13 +450,13 @@ GDScript also supports :ref:`format strings <doc_gdscript_printf>`.
|
||||
Annotations
|
||||
~~~~~~~~~~~
|
||||
|
||||
There are some special tokens in GDScript that act like keywords but are not,
|
||||
they are *annotations* instead. Every annotation start with the ``@`` character
|
||||
and is specified by a name. A detailed description and example for each annotation
|
||||
can be found inside the :ref:`GDScript class reference <class_@GDScript>`.
|
||||
Annotations are special tokens in GDScript that act as modifiers to a script or
|
||||
its code and may affect how the script is treated by the Godot engine or
|
||||
editor.
|
||||
|
||||
Annotations affect how the script is treated by external tools and usually don't
|
||||
change the behavior.
|
||||
Every annotation starts with the ``@`` character and is specified by a name. A
|
||||
detailed description and example for each annotation can be found inside the
|
||||
:ref:`GDScript class reference <class_@GDScript>`.
|
||||
|
||||
For instance, you can use it to export a value to the editor::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user