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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
300
Latest_Information_of_CICD_for_UnityAppWithAppleVisionPro
cova8bitdots
0
140
HandGestureTool for AppleVisionPro
cova8bitdots
0
150
NinjaGazeTyping 制作秘話
cova8bitdots
0
380
Unity-chan.Terrastal!!
cova8bitdots
0
520
ExampleOfTilemap2D
cova8bitdots
0
180
unity_lt_2021_Dec.pdf
cova8bitdots
0
1k
HowToUseAudioMixer
cova8bitdots
0
190
TrapOfSpriteAtlas
cova8bitdots
0
5.5k
Other Decks in Programming
See All in Programming
DynamoDBの基礎を振り返りながらベクトル検索機能を理解する
musan
3
260
Kiroで創り、AgentCoreで繋ぐ!AWSで実践する「AI-DLC」から「AIエージェント統合」までの最新地図
licux
2
310
Laravelのアプリケーションをどこにデプロイするか #ツナギメオフライン.9
akase244
0
120
GraphRAGのKnowledge Graphを 直接!見る/View-GraphRAG's-KnowledgeGraph-directly!
tyumugi1113
0
220
ハーネス設計入門 〜プロンプト、コンテキストの次〜
kinopeee
53
35k
KotlinConf Extended South Korea 2026 Keynote
l2hyunwoo
0
130
LLMは4年分のCompose移行を再現できるのか?実プロダクト279件のXMLで探る自動化の境界線
makun
0
380
Can LLMs Replicate 4 Years of Compose Migration? Exploring the boundaries of automation with 279 XML files from a real product
makun
0
130
PHPプロジェクトの結合バランスを可視化する #php_night
kajitack
0
210
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
3
460
初心者DevRelとして参加者だった私が、DevRel Talks!#2に登壇するまでにしてきたこと
sokohirai
0
330
AI時代に学ぶ 好きなルール 嫌いなルール Linter編
shorty5121
0
830
Featured
See All Featured
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6.1k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
370
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.7k
Git: the NoSQL Database
bkeepers
PRO
432
67k
Mobile First: as difficult as doing things right
swwweet
225
10k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
450
Abbi's Birthday
coloredviolet
3
9.8k
Building Adaptive Systems
keathley
44
3.2k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
390
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
310
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 みなさんも⾊んな技術を組み合わせて 便利サービスを作っていきましょう!