Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Unity Cloud Save でプレイヤーデータのクラウド保存しよう / xrdnk-yo...
Search
Denik
November 19, 2021
Programming
0
1.6k
Unity Cloud Save でプレイヤーデータのクラウド保存しよう / xrdnk-yokohamaunitylt9
yokohama.unity #9 で発表したLT登壇資料です.
https://cluster.mu/e/40338a26-caca-49c2-961c-557f4719d532
Denik
November 19, 2021
Tweet
Share
More Decks by Denik
See All by Denik
Oculus Interaction SDK 概説 / xrdnk-caunity-LT4
xrdnk
0
9.5k
Unity Localization で多言語対応実装しよう / xrdnk-yokohamaunity-lt10-20220513
xrdnk
0
7.2k
XR Interaction Toolkit 2.0.0 正式リリース記念パピコ / xrdnk-xrmtg-lt-20220316
xrdnk
0
7.6k
Unidux を用いたマルチシーン構成の画面遷移 / xrdnk-unity-otonanolt-2021
xrdnk
0
5.7k
Feel でゲームのエフェクトを豪華にしよう / xrdnk-yokohamaunityLT8
xrdnk
1
1.9k
Unidux Scene Transition Hands-on / xrdnk-unidux-scene-transition-hands-on
xrdnk
1
470
新MLAPIでマルチゲームを作ってみた / xrdnk-gotandaunityLT19-presentation
xrdnk
1
4.2k
三種の神器とMVRPパターン / xrdnk-three-sacred-treasures-and-mvrp-pattern
xrdnk
1
7.2k
MLAPIでマルチゲームを作ってみた / xrdnk-roppongiunityLT8-presentation
xrdnk
1
3k
Other Decks in Programming
See All in Programming
ELYZA_Findy AI Engineering Summit登壇資料_AIコーディング時代に「ちゃんと」やること_toB LLMプロダクト開発舞台裏_20251216
elyza
2
1k
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
2.1k
DevFest Android in Korea 2025 - 개발자 커뮤니티를 통해 얻는 가치
wisemuji
0
180
AIの誤りが許されない業務システムにおいて“信頼されるAI” を目指す / building-trusted-ai-systems
yuya4
7
4.3k
TerraformとStrands AgentsでAmazon Bedrock AgentCoreのSSO認証付きエージェントを量産しよう!
neruneruo
4
2.4k
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
480
Grafana:建立系統全知視角的捷徑
blueswen
0
280
脳の「省エネモード」をデバッグする ~System 1(直感)と System 2(論理)の切り替え~
panda728
PRO
0
130
Navigation 3: 적응형 UI를 위한 앱 탐색
fornewid
1
540
GISエンジニアから見たLINKSデータ
nokonoko1203
0
190
Deno Tunnel を使ってみた話
kamekyame
0
320
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
4
730
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.5k
Technical Leadership for Architectural Decision Making
baasie
0
200
Scaling GitHub
holman
464
140k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
200
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.5k
Bash Introduction
62gerente
615
210k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
1k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
130
ラッコキーワード サービス紹介資料
rakko
0
2M
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
190
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
Transcript
Unity Cloud Save で プレイヤーデータを クラウド保存しよう yokohama unity #9 Lighting
Talk Denik (@xrdnk) Unity / XR Developer
自己紹介 Denik ➢ Twitter: @xrdnk ➢ うにてい園児にゃあ ➢ B2B XR
サービス開発のおしごと ! ➢ ブログ書いてたりしてる
アジェンダ ➢ はじめに ➢ Unity Gaming Services ➢ Unity Cloud
Save ➢ 類似の(m)BaaS 比較 ➢ 利用方法・機能紹介 ➢ 前準備 ➢ 保存処理 ➢ 読込処理 ➢ 削除処理 ➢ おわりに
はじめに
Unity Gaming Services Unity 公式 (m)BaaS パッケージ群の Open Beta が
10 月発表されました
Unity Cloud Save とは PlayerPrefs ローカルにゲームデータを保存する Unity 公式機能 Unity Cloud
Save クラウドにゲームデータを保存する Unity 公式機能
主な類似(m)BaaS 比較 (間違ってたらすみません) BaaS 無料枠 Unity Cloud Save ストレージ: 5
GB/月 書込: 100万回 / 月 読取: 100万回 / 月 NCMB Datastore ストレージ: 5 GB APIリクエスト数: NCMB API/SDK を通じて 100万回 ⁄ 月 PlayFab PlayerData タイトルあたり 10万人まで 無料以降は従量課金 (PlayFab の料金体系難解…) Firebase Realtime Database 保存容量 1GB ダウンロード容量 10GB
利用方法・機能紹介
サンプルプロジェクト サンプルプロジェクトを公開しています. 興味ある方は覗いてみてください. https://github.com/xrdnk/UnityGamingServicesExample/tr ee/master/Assets/%40UGSExample/Scripts/CloudSave こちらをベースに話を進めようと思います.
前準備(1/4)| Unity Editor 設定 プロジェクト作成後, Unity Project ID を発行します Project
Settings > Services > Service General Settings 「Create project ID」押下後に ID 発行されれば OK
前準備(2/4)| Unity Dashboard 設定 Unity Cloud Save を利用できるようにするために Unity Dashboard
側で Cloud Save を Enabled にします Unity Gaming Services HP > LiveOps > Cloud Save β > About & Support > 「Enable」 を押下 https://dashboard.unity3d.com/
前準備(3/4)|インストール UPM Package Manager > Add package by name (Unity
2020 以前は Add package from git url) 「com.unity.services.cloudsave」 を入力で完了 manifest.json 直打ち
前準備(4/4)|Unity Authentication で認証処理 ① Unity Gaming Services の Initialization ②
Unity Authentication で SignIn (今回は匿名認証) ③ SignIn に成功すれば Player ID が取得できる この Player ID に紐づくプレイヤーデータの CRUD を行います
保存処理 (CREATE・UPDATE)
保存データ確認 Unity Gaming Services HP > LiveOps > Cloud Save
β > Find Player > Player ID で検索
プリミティブ型の読込処理 (READ)
シリアライズデータの読込処理(READ)
シリアライズデータに関する保存・読込処理 API の注意点 保存処理の場合 内部で勝手にシリアライズ処理を行ってくれる 読込処理の場合 自分でデシリアライズ処理を行う必要がある
削除処理
おわりに
おわりに ➢ Unity Cloud Save の基本的な使い方を紹介 ➢ Unity 公式パッケージなので Project
が嵩張らないのありがたい ➢ 個人的に Dashboard の所の使い勝手を良くしてほしい ➢ 正式リリースに期待 ➢ 簡単に使えるので皆さんも使ってみましょう