GameLabGraz / Utilities

Various utility packages for Unity
GNU General Public License v3.0
3 stars 1 forks source link

[LanguageManager] DontDestroyOnLoad Error #76

Closed lisahabich closed 1 year ago

lisahabich commented 1 year ago

To fix the error when the language manager is not a root game object, the parent has to be set to null.

transform.SetParent(null);
DontDestroyOnLoad(gameObject)