deviceUniqueIdentifierが使えない
-
WebGL では
deviceUniqueIdentifier
は使えません -
ので、 UUID を生成するコードを 内部プロジェクトでは追加した。
-
抜粋したコード
... string playerId = PlayerPrefs.GetString("uuid"); if (string.IsNullOrEmpty(playerId)) { // GUID の生成 System.Guid guid = System.Guid.NewGuid(); playerId = guid.ToString(); PlayerPrefs.SetString("uuid", playerId); PlayerPrefs.Save(); } ...
- そんなに難しい話ではないので、省略