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

Getting unexpected "Tried to Initialize the SteamAPI twice in one session!" #657

Open
WildRikku opened this issue Nov 26, 2024 · 0 comments

Comments

@WildRikku
Copy link

I use Rich Presence in an OnDisable() to clear a text when a scene is unloaded. For a reason I cannot figure out, this causes SteamManager to throw the error for double initialization.

a) Am I safe to just comment out that error? I considered it a warning for bad coding style but I followed the recommendation there, which
b) might be outdated, as only using OnDisable() seems to no longer be sufficient.

This is in Unity 2021.3.39f1. SteamManager creates its GameObject and Component itself in the scene in question. I use the Enter Play Mode options with both reloads turned off.

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