Rie :godot: on Nostr: Huh, I just learned GDScript has _static_init(). Override that function and it will ...
Huh, I just learned GDScript has _static_init(). Override that function and it will get executed when the script is loaded for the first time, useful for initializing static variables. There is not a single mention of this method in the documentation, I only found it because autocomplete suggested it.
Published at
2024-03-30 10:54:01Event JSON
{
"id": "f536080c699dc733bba2ecae5d08bd0d097dddd59c642862b57aee6be6138856",
"pubkey": "82ace845c8ec836a807fda7803829c211f27851fd0248dcfd350dfaf4e933d7b",
"created_at": 1711796041,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.gamedev.place/users/tracefree/statuses/112184265377065223",
"activitypub"
]
],
"content": "Huh, I just learned GDScript has _static_init(). Override that function and it will get executed when the script is loaded for the first time, useful for initializing static variables. There is not a single mention of this method in the documentation, I only found it because autocomplete suggested it.",
"sig": "df764846418ab585c1b29625de48b69b4d0d9b986085235c758dd72e4a20036cfaa01ee5477d09df2479f261e675616e4309c3fc43f58e3c43f7ef0357763e3a"
}