Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Tort |
var Globals = ProjectSettings
Globals.set('test', null)
print(Globals.get('test'))
WARNING: not found: test
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Tort |
var Globals = ProjectSettings
Globals.set('test', null)
print(Globals.get('test'))
WARNING: not found: test
Reply From: | literalcitrus |
Globals
got removed in 3.0, so set()
and get()
default to the Object
implementation in ProjectSettings
, which means that it looks for an existing property. Try using set_setting()
and get_setting()
instead.
set_setting() and get_setting()
The result is the same
Tort | 2018-02-15 22:10
You may have to manually add the property to the Project Settings for it to work.
literalcitrus | 2018-02-15 22:46