Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Or you might be meaning a "global scope" variable... in which case it might look like this in one file:
See https://docs.godotengine.org/en/3.1/getting_started/workflow/best_practices/what_are_godot_classes.html
Note that the SampleClass could also be an Autoload, in which case you can omit the classname line because it's handled by the Autoload system in Project Settings.
See https://docs.godotengine.org/en/stable/tutorials/scripting/singletons_autoload.html