summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/parser/features/export_variable.gd
blob: acf9ff2e215cf623ed1ec136362b4a458448086a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@export var example = 99
@export_range(0, 100) var example_range = 100
@export_range(0, 100, 1) var example_range_step = 101
@export_range(0, 100, 1, "or_greater") var example_range_step_or_greater = 102

@export var color: Color
@export_color_no_alpha var color_no_alpha: Color
@export_node_path("Sprite2D", "Sprite3D", "Control", "Node") var nodepath := ^"hello"


func test():
	print(example)
	print(example_range)
	print(example_range_step)
	print(example_range_step_or_greater)
	print(color)
	print(color_no_alpha)
	print(nodepath)