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とGoogleCloudFunction を連携して社内サービスを作った話
Search
Cova8bitdots
July 14, 2023
Programming
0
180
UnityとGoogleCloudFunction を連携して社内サービスを作った話
Lightening Talk on Qiita Engineer Fes2023
Cova8bitdots
July 14, 2023
Tweet
Share
More Decks by Cova8bitdots
See All by Cova8bitdots
Latest_Information_of_CICD_for_UnityAppWithAppleVisionPro
cova8bitdots
0
72
HandGestureTool for AppleVisionPro
cova8bitdots
0
110
NinjaGazeTyping 制作秘話
cova8bitdots
0
320
Unity-chan.Terrastal!!
cova8bitdots
0
410
ExampleOfTilemap2D
cova8bitdots
0
130
unity_lt_2021_Dec.pdf
cova8bitdots
0
840
HowToUseAudioMixer
cova8bitdots
0
150
TrapOfSpriteAtlas
cova8bitdots
0
5.2k
StudyUnityFromAnti-pattern
cova8bitdots
0
2.4k
Other Decks in Programming
See All in Programming
DynamoDBは怖くない!〜テーブル設計の勘所とテスト戦略〜
hyamazaki
0
150
変化を楽しむエンジニアリング ~ いままでとこれから ~
murajun1978
0
640
オホーツクでコミュニティを立ち上げた理由―地方出身プログラマの挑戦 / TechRAMEN 2025 Conference
lemonade_37
1
410
Vibe coding コードレビュー
kinopeee
0
390
テスターからテストエンジニアへ ~新米テストエンジニアが歩んだ9ヶ月振り返り~
non0113
2
250
コーディングエージェント概観(2025/07)
itsuki_t88
1
480
Amazon Q CLI開発で学んだAIコーディングツールの使い方
licux
3
150
Streamlitで実現できるようになったこと、実現してくれたこと
ayumu_yamaguchi
2
260
[SRE NEXT] 複雑なシステムにおけるUser Journey SLOの導入
yakenji
1
880
Strands Agents で実現する名刺解析アーキテクチャ
omiya0555
1
110
Google I/O Extended Incheon 2025 ~ What's new in Android development tools
pluu
1
220
階層化自動テストで開発に機動力を
ickx
1
460
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
161
15k
Designing Experiences People Love
moore
142
24k
Practical Orchestrator
shlominoach
190
11k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.6k
Art, The Web, and Tiny UX
lynnandtonic
301
21k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.2k
Navigating Team Friction
lara
188
15k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
410
Building Adaptive Systems
keathley
43
2.7k
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 みなさんも⾊んな技術を組み合わせて 便利サービスを作っていきましょう!