LoginSignup
0
0

More than 1 year has passed since last update.

Unity でPubSubを使い始める

Posted at

Unity でPubSubを使い始める

Unity を使用して Firebase Cloud Messaging クライアント アプリを設定する  |  Firebase Documentation

Cocoapodsのインストール(IOSのみ)

M1 Macでpod installを実行する
sudo gem install cocoapods
sudo gem install ffi
pod setup
=> Oculousだからやらない?

Apple Push Notification Authentication Key を取得(IOSのみ)

Apple Developer アカウント にアクセス
=> Oculousだからやらない?

Unityを入れて動かせるようにする

Monoを入れる

MacOSX上でNuGetを使う - Qiita

 brew install --build-from-source mono

Nugetを入れる

MacOSX上でNuGetを使う - Qiita

  1. nugetのダウンロードとコピー
    NuGet Gallery | Downloadsから* nuget.exe - recommended latest v6.0.0 をダウンロード
mkdir $HOME/bin/
cp /Users/ebiharamari/Downloads/nuget.exe $HOME/bin/nuget.exe

vi $HOME/bin/nugetで下記スクリプトの保存

#!/bin/sh
script_dir=“$(cd “$(dirname “${BASH_SOURCE:-${(%):-%N}}”)”; pwd)”
mono —runtime=v4.0 ${script_dir}/nuget.exe $*

NuGetでMono.Cecilをインストールする

nuget list -Verbosity detailed Mono.Cecil

GOOGLE_APPLICATION_CREDENTIALSを環境変数に設定

.NET client library  |  Google Cloud
=> TBD

.NETを入れる

Download .NET 5.0 SDK (v5.0.403) - macOS x64 Installer

.NET のGoogleClientを入れる

GitHub - googleapis/google-cloud-dotnet: Google Cloud Client Libraries for .NET
Using GCP NuGet Packages with Unity | by Jon Foust | Medium
Google Cloud Blog - News, Features and Announcements

GoogleClientInUnity.png

Unity側に実装

TBD
(今回の検証でたどり着けなかったが次回)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0