Skip to content

Commit 06f325c

Browse files
committed
SimpleSpawner: Add unit suffixes to exported properties
I learned about this annotation in a workshop hosted by Nathan from GDQuest.
1 parent 1a0cd11 commit 06f325c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/block_code/simple_spawner/simple_spawner.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ enum LimitBehavior { REPLACE, NO_SPAWN }
2323

2424
## The period of time in seconds to spawn another component. If zero, they won't spawn
2525
## automatically. Use the "Spawn" block.
26-
@export_range(0.0, 10.0, 0.1, "or_greater") var spawn_frequency: float = 0.0:
26+
@export_range(0.0, 10.0, 0.1, "or_greater", "suffix:s") var spawn_frequency: float = 0.0:
2727
set = _set_spawn_fraquency
2828

2929
## How many spawned scenes are allowed. If zero, there is no limit.
30-
@export_range(0, 50, 0.1, "or_greater") var spawn_limit: int = 50
30+
@export_range(0, 50, 0.1, "or_greater", "suffix:scenes") var spawn_limit: int = 50
3131

3232
## What happens when the limit is reached and a new spawn is attempted:
3333
## - Replace: Remove the oldest spawned scene and spawn a new one.

0 commit comments

Comments
 (0)