ドキュメント

​
​

Development

User Acquisition

Monetization

産業

Authentication

Open Unity Dashboard

Authentication

LiveOps
​
​
Authentication
  • Overview
  • Get started
  • Concepts
    • How Authentication works
    • Approaches to authentication
    • Sessions and cached players
    • Manage profiles
    • Manage player names
    • Manage linked external identities
    • Player prefs
    • Delete accounts
    • Authentication native SDK
    • Digital Services Act Notifications
  • Tutorials
  • Reference
  • Privacy and consent
  1. Unity Authentication

PlayerPrefs /PlayerPrefs

Understand how Unity Authentication uses player preferences to securely store authentication tokens.
読み終わるまでの所要時間 1 分
最終更新 9ヶ月前

サインイン後、セッショントークンは
PlayerPrefs
に保存されます。これはゲームセッション間でのプレイヤーの設定を保存するクラスです。
string
、
float
、
integer
をプレイヤーのプラットフォームレジストリに保存することができます。
Unity では、以下のキー形式を使用してトークンが分離されます。
$CloudProjectId.$Profile.unity.services.authentication.session_token
。
場所はプラットフォームによって異なります。
詳細については、PlayerPrefs スクリプトのリファレンスドキュメントを参照してください。

Copyright © 2026 Unity Technologies
法規事項プライバシーポリシークッキーDocumentation Terms of Use私の個人情報を販売または共有しないプライバシーに関する選択 (クッキー設定)

"Unity" の名称、Unity のロゴ、およびその他の Unity の商標は、米国およびその他の国における Unity Technologies またはその関係会社の商標または登録商標です (詳しくはこちら)。その他の名称またはブランドは該当する所有者の商標です。

一部のページは利便性向上のため機械翻訳を使用しており、内容に不正確な表現が含まれる場合があります。内容に齟齬または不一致が生じた場合は、英語版を正本とします。


    このページの問題を報告する