Document new feature allowing @exported Arrays to set property hints for their elements (#9061)

* Document export variations for arrays

* Update tutorials/scripting/gdscript/gdscript_exports.rst

Co-authored-by: Raul Santos <raulsntos@gmail.com>

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
Co-authored-by: Raul Santos <raulsntos@gmail.com>
This commit is contained in:
Abel Toy
2024-03-25 17:34:38 +01:00
committed by GitHub
co-authored by Raul Santos Max Hilbrunner
parent 9840c458db
commit bd7bc61e9e
@@ -368,6 +368,15 @@ Packed type arrays also work, but only initialized empty:
@export var vector3s = PackedVector3Array()
@export var strings = PackedStringArray()
Other export variants can also be used when exporting arrays:
::
@export_range(-360, 360, 0.001, "radians") var laser_angles: Array[float] = []
@export_file("*.json") var skill_trees: Array[String] = []
@export_color_no_alpha var hair_colors = PackedColorArray()
@export_enum("Espresso", "Mocha", "Latte", "Capuccino") var barista_suggestions: Array[String] = []
``@export_storage``
-------------------