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でARアプリを作るときに面倒な事を解決する
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Keisuke Hara
June 25, 2019
Programming
0
20
UnityでARアプリを作るときに面倒な事を解決する
Keisuke Hara
June 25, 2019
Tweet
Share
Other Decks in Programming
See All in Programming
生成AIを活用したソフトウェア開発ライフサイクル変革の現在値
hiroyukimori
PRO
0
120
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
320
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1.1k
AI時代の認知負荷との向き合い方
optfit
0
180
24時間止められないシステムを守る-医療ITにおけるランサムウェア対策の実際
koukimiura
1
150
日本だけで解禁されているアプリ起動の方法
ryunakayama
0
330
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
180
Apache Iceberg V3 and migration to V3
tomtanaka
0
190
CSC307 Lecture 05
javiergs
PRO
0
500
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
320
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
170
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
Featured
See All Featured
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
280
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
100
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
210
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
460
The World Runs on Bad Software
bkeepers
PRO
72
12k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
440
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
180
The Art of Programming - Codeland 2020
erikaheidi
57
14k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
230
Transcript
UnityでARアプリを作るとき に面倒な事を解決する
自己紹介 むーつん 株式会社Graffity リードUnityエンジニア 好きなもの: タピオカミルクティー Twitter: @mutun__ ← Follow
Me!!
ペチャバト作ってます
UnityでARアプリ開発してますか?
(Swiftでの開発と比べ)開発サイクルに違いがある ・基本的にコーディングしたらビルドしていくの繰り 返し ・差分ビルドによるビルド最適化 Swift ・IL2CPPビルド時間+XCodeビルド時間 =総ビルド時間 ・インクリメンタルビルドを使えばビルド速度改善 できる Unity
コーディング ビルド コーディング プレイモード ビルド ビルド遅い
今日話さないこと • ビルド高速化について ◦ IL2CPPビルド時間の最適化 ◦ https://docs.unity3d.com/ja/current/Manual/IL2CPP-OptimizingBuildTimes.html • ARゲーム開発について ◦
UnityARKitPluginのサンプルコード読もう ◦ https://bitbucket.org/Unity-Technologies/unity-arkit-plugin/src/default/ 今日話すこと • 実機でのテストを少なく開発すること • 実機でのテストの精度を上げること
ビルドに時間がかかっても効率的に開発するには ARアプリは主観的な体験のため、一度にアプリ上で起こっている事す べてを把握することができない • 基本的に動作確認はプレイモードで確認する ◦ ARカメラが必要ないゲームロジックなど ◦ ビルドしての動作確認回数をできるだけ減らす •
ログ出力を積極的にしていく ◦ ステート管理やコールバックなど ◦ ARImageAnchorAddedEventとか • 神の視点を作る
プレイモード時に端末とのAR空間を同期させておく Unity版ペチャバトではPhotonを採用 iPhone + プレイモードで同ルームに接続 UIなどの一部を除きゲームオブジェクトは PhotonNetwork.Instantiateを使う AR空間上で何が起きているか 客観的に把握できるようになった!!
デモ
AR開発する時に意識しておくこと ❏ プレイモードで動作確認ができる場合はなるべくビルドしない ❏ (AR空間をシミュレートできるテスト環境を作るとよいかも ) ❏ コールバックや状態管理にはログを使う ❏ 神の視点を作る
❏ AR空間をPhotonを利用してプレイモードと同期する
UnityRemoteSimulator(仮) ❏ Photonを開発時以外は使わないのでできれば入れたくない ❏ Photonの学習時間をAR開発に割きたい 同じLANに接続している端末間で UDPによるゲームオブジェクトの同期ができるライブラリ を開発中です。 https://github.com/HaraKeisuke/UnityRemoteSimulator Twitter:
@mutun__ (アンダーバーはふたつ )
GraffityではUnityエンジニアを募集しています! ARゲームの開発に興味がある方、懇親会でお話しましょう! ご清聴ありがとうございました!!