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

12 lines
199 B
GDScript

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