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とGoogleCloudFunction を連携して社内サービスを作った話
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Cova8bitdots
July 14, 2023
Programming
230
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
UnityとGoogleCloudFunction を連携して社内サービスを作った話
Lightening Talk on Qiita Engineer Fes2023
Cova8bitdots
July 14, 2023
More Decks by Cova8bitdots
See All by Cova8bitdots
Unity6.3 AudioUpdate
cova8bitdots
0
310
Latest_Information_of_CICD_for_UnityAppWithAppleVisionPro
cova8bitdots
0
140
HandGestureTool for AppleVisionPro
cova8bitdots
0
160
NinjaGazeTyping 制作秘話
cova8bitdots
0
380
Unity-chan.Terrastal!!
cova8bitdots
0
530
ExampleOfTilemap2D
cova8bitdots
0
180
unity_lt_2021_Dec.pdf
cova8bitdots
0
1k
HowToUseAudioMixer
cova8bitdots
0
200
TrapOfSpriteAtlas
cova8bitdots
0
5.5k
Other Decks in Programming
See All in Programming
そのリトライ、死んだコネクションを使い回していませんか ── GoのHTTPクライアントとHTTP/2を実プロダクト障害から学び直す
myus4a
0
300
MVNOの申込からeSIM開通までをiOSアプリでつなぐ- 本人確認・MNP・通信事業者基盤をまたぐ実装
satotakeshi
0
500
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
8.8k
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
290
iOSDC2026登壇資料.pdf
riofujimon
0
200
選挙速報を多くのユーザーへ 届ける Live Activities 設計
hamayokokuririn
0
180
JRuby: Past, Present, and Future
headius
0
210
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
320
MCP Appsでつくるチャット駆動な地図アプリ
nakamori1024
0
110
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
0
1.9k
AWS DevOps Agentで インシデント対応をAIに任せたい
honmarkhunt
7
3.3k
AI Agent時代のリアーキテクチャ戦略と実践
hokaccha
9
5.1k
Featured
See All Featured
The Language of Interfaces
destraynor
162
27k
ラッコキーワード サービス紹介資料
rakko
1
5M
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
340
Optimising Largest Contentful Paint
csswizardry
37
4k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.7k
Into the Great Unknown - MozCon
thekraken
41
2.7k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
680
WCS-LA-2024
lcolladotor
0
830
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Building an army of robots
kneath
307
46k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
270
Transcript
Qiita Engineer Festa 2023 〜私しか得しないニッチな技術でLT〜 UnityとGoogleCloudFunction を連携して社内サービスを作った話 2023/07/14
登壇者情報 Gra ffi ty(株) 所属Unityエンジニア 専門領域:サウンドプログラミング @8bitdots Unityを中心とした情報発信などを行っています。 2
Qiita Engineer Festa 2023〜私しか得しないニッチな技術でLT〜 技術書の査読も しています
Graffityは現在 toC向けの「ARゲーム事業」とtoB向けの「ARエンタメDX事業」に フォーカスしています 3 Qiita Engineer Festa 2023〜私しか得しないニッチな技術でLT〜
UnityとGoogleCloudFunction を 連携して社内サービスを作った話 Qiita Engineer Festa 2023〜私しか得しないニッチな技術でLT〜
Unityって?
Unityとは • Unity Technologies が提供するゲームエンジン • 基本⾔語はC# • PC, iOS,
Android, WebGL, コンシューマーゲーム機向けに アプリをビルドすることが可能 • 国内スマホゲームは⼤体Unity製 • プラグインの導⼊でAR/VRなども対応可能 6 Qiita Engineer Festa 2023〜私しか得しないニッチな技術でLT〜
GoogleCloudFunctionって?
GoogleCloudFunction(GCF)とは • GoogleCloudPlatform 上で提供される Function as a Service • いわゆるサーバーレス
• JavaScript, Python などのコードを実⾏可能 8 Qiita Engineer Festa 2023〜私しか得しないニッチな技術でLT〜
9 全然ニッチじゃないじゃん!?
Qiitaで「Unity」「CloudFunction」「GCP」で検索 10 Qiita Engineer Festa 2023〜私しか得しないニッチな技術でLT〜
Qiitaで「Unity」「GoogleCloudFunction」で検索 11 Qiita Engineer Festa 2023〜私しか得しないニッチな技術でLT〜
12 ⾃分が書いた記事しかヒットしない!
13 全然ニッチじゃないじゃん!? ニッチじゃん!?
Unity + GCF + GCSql で社内のデバッグ端末管理サービスを構築しました 14 Qiita Engineer Festa
2023〜私しか得しないニッチな技術でLT〜 実装:C# 実装:Python 実装:Python
Unity + GCF + GCSql で社内のデバッグ端末管理サービスを構築しました 15 Qiita Engineer Festa
2023〜私しか得しないニッチな技術でLT〜 デバッグ端末の貸し出し・返却フロー
Unity + GCF + GCSql で社内のデバッグ端末管理サービスを構築しました 16 Qiita Engineer Festa
2023〜私しか得しないニッチな技術でLT〜 返却期限すぎてる端末チェック&通知
Unity + GCF + GCSql で社内のデバッグ端末管理サービスを構築しました 17 Qiita Engineer Festa
2023〜私しか得しないニッチな技術でLT〜 NFCタグ 社員証(Felica)
Unity→GCFのEndpointを叩く部分で苦労した • cURLでのPOSTはOK • PostデータはJSON • UnityはUnityWebRequestというcURLの ラッパークラスのようなものが存在 •
UnityWebRequestで普通にEndpointを 叩いても400で弾かれた 18 Qiita Engineer Festa 2023〜私しか得しないニッチな技術でLT〜 https://qiita.com/Cova8bitdot/items/2aa8365f2dbbc1f2d81a
Unity→GCFのEndpointを叩く部分で苦労した • 解決方法 • UnityWebRequestにヘッダを書く • UnityWebRequestのDownloadHandler UploadHandlerを書く •
Post するjsonデータをバイナリ変換してアップロード • 理由:わからん!でもこれで動く!謎! 19 Qiita Engineer Festa 2023〜私しか得しないニッチな技術でLT〜 https://qiita.com/Cova8bitdot/items/2aa8365f2dbbc1f2d81a
まとめ • スマホゲーム等では Unity→APIサーバー(GCE/EC2) のようにAPIサーバーを用意することが多い • 社内サービス等小規模であればサーバレスの GCFやLambda で代替は可能 •
意外と既知の技術同士の組み合わせをやってない場合がある • ある意味ブルーオーシャン(水深1.5m) • Qiitaは「いつか誰かの役に立つだろう」という知見共有に最適! • たとえバズらなくても記事を書こう! 20 Qiita Engineer Festa 2023〜私しか得しないニッチな技術でLT〜
21 みなさんも⾊んな技術を組み合わせて 便利サービスを作っていきましょう!