godot/modules/gdscript/tests/scripts/runtime/features/static_variables_load.gd

11 lines
167 B
GDScript

@static_unload
static var perm := 0
static var prop := "Hello!":
get: return prop + " suffix"
set(value): prop = "prefix " + str(value)
func test():
print("ok")