Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
22
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
UnityでARアプリを作るときに面倒な事を解決する
Keisuke Hara
June 25, 2019
Other Decks in Programming
See All in Programming
Event is what happens
moro
2
770
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
170
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
130
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
1k
ジョジョの世界をXRで再現する
mofurune
0
160
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
210
複雑なUIコンポーネントとの ⻑い付き合い⽅:波及するバグからテスト戦略を経て、安全な再設計へ
mixplace
0
410
Jetpack Compose Mechanisms
skydoves
3
820
Workers Cache を知る
syumai
0
360
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
180
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
96
6.9k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
How to build a perfect <img>
jonoalderson
1
6.1k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
940
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
590
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
530
The Language of Interfaces
destraynor
162
27k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.4k
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ゲームの開発に興味がある方、懇親会でお話しましょう! ご清聴ありがとうございました!!