Export Keyword
In Godot, class members can be exported to the Godot application using the export keyword.
A benefit of using the export keyword is that it’s easier to edit the values
of member variables.
export var example = "Hello!"
The variable example will now be viewable in the Godot Application.
Export with Data Type Safety
export(String) var example
The value will default to an empty string:
The value will default to 0.
Export with Enumeration
export(int, "Up", "Down") var example
The choices available are up or down, and the value will default to 0.
Export with Integer Range
export(int, 20) var example
You can input a value between 0 - 20
export(int, 10, 20) var example
You can input a value between 10 - 20
Resources
Github Project:
Godot Tutorials Resources