Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for static variables in GDScript #76264

Merged
merged 1 commit into from
Apr 27, 2023

Commits on Apr 27, 2023

  1. Add support for static variables in GDScript

    Which allows editable data associated with a particular class instead of
    the instance. Scripts with static variables are kept in memory
    indefinitely unless the `@static_unload` annotation is used or the
    `static_unload()` method is called on the GDScript.
    
    If the custom function `_static_init()` exists it will be called when
    the class is loaded, after the static variables are set.
    vnen committed Apr 27, 2023
    Configuration menu
    Copy the full SHA
    0ba6048 View commit details
    Browse the repository at this point in the history