2023-10-05 12:50:26 +02:00
|
|
|
extends Node
|
|
|
|
|
2021-04-19 20:50:52 +02:00
|
|
|
@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
|
|
|
|
|
2021-09-15 19:09:34 +02:00
|
|
|
@export var color: Color
|
|
|
|
@export_color_no_alpha var color_no_alpha: Color
|
2023-01-18 18:12:33 +01:00
|
|
|
@export_node_path("Sprite2D", "Sprite3D", "Control", "Node") var nodepath := ^"hello"
|
2023-10-05 12:50:26 +02:00
|
|
|
@export var node: Node
|
|
|
|
@export var node_array: Array[Node]
|
2021-04-19 20:50:52 +02:00
|
|
|
|
|
|
|
func test():
|
|
|
|
print(example)
|
|
|
|
print(example_range)
|
|
|
|
print(example_range_step)
|
|
|
|
print(example_range_step_or_greater)
|
2021-09-15 19:09:34 +02:00
|
|
|
print(color)
|
|
|
|
print(color_no_alpha)
|
|
|
|
print(nodepath)
|
2023-10-05 12:50:26 +02:00
|
|
|
print(node)
|
|
|
|
print(var_to_str(node_array))
|