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
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
320
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
Heart of Swift Concurrency
koher
0
1.2k
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
750
iOSDC2026登壇資料.pdf
riofujimon
0
210
GitHubハンズオン講座 — 実務レベルのチーム開発のフローを身につけよう
junhat6
0
120
速く作れる。その次は、速く確かめられる開発へ 〜AIネイティブ開発を支える、Shift Down〜 / Can build fast. Next, moving to development where we can verify fast.
rkaga
8
5.5k
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
330
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
480
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
310
AWSに止められる覚悟してますか?
morizo_1984
2
510
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
7
1.9k
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.1k
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
Featured
See All Featured
It's Worth the Effort
3n
188
29k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
580
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
310
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
510
Discover your Explorer Soul
emna__ayadi
2
1.3k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
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 みなさんも⾊んな技術を組み合わせて 便利サービスを作っていきましょう!