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

In iOS, Application.Unload does not unload assemblies. #92

Open
tsuixl opened this issue Nov 8, 2023 · 0 comments
Open

In iOS, Application.Unload does not unload assemblies. #92

tsuixl opened this issue Nov 8, 2023 · 0 comments

Comments

@tsuixl
Copy link

tsuixl commented Nov 8, 2023

hi.

I need the static variables in the assembly to be unloaded after Application.Unload.

Examples:

private static int s_StaticValue = 0;

public void ChangeValue ()
{
    s_StaticValue = 1;
}

After executing the ChangeValue() function, the value of s_StaticValue becomes 1. However, after Application.Unload, it cannot restore s_StaticValue to its default value of 0.

What operation can restore the Unity assembly to its initial state?

thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant