Typed Arrays in GDScript
You can define an array of a strict type in Godot like this:
var names: Array[string] = ["Hash", "Rocket"]
# Or if you had a custom class:
var powerups: Array[Pickup] = []
Tweet
You can define an array of a strict type in Godot like this:
var names: Array[string] = ["Hash", "Rocket"]
# Or if you had a custom class:
var powerups: Array[Pickup] = []
Tweet