Quantcast
Channel: Questions in topic: "dll"
Viewing all articles
Browse latest Browse all 706

,PlayerPrefs stuck on event delegate

$
0
0
Hi! I created a .NET DLL using MonoBehaviour (Rider's default schema). When I try to use an event/delegate, PlayerPrefs crashes code execution. I can't do this or am I doing something wrong? OnTokensChange += tokens => { Debug.Log("Writing..."); // It is written to the console PlayerPrefs.SetString("Test", tokens.RefreshToken); Debug.Log("Saving..."); // It is not written to the console PlayerPrefs.Save(); Debug.Log("Saved!"); // It is not written to the console Debug.Log(PlayerPrefs.GetString("Test", "default_value")); };

Viewing all articles
Browse latest Browse all 706

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>