LoginSignup
6
7

More than 5 years have passed since last update.

Unity と Mac で開発する Oculus Go アプリ #8 Debug.Log

Posted at

Oculus & Unity 初心者が開発するまでのメモ

Unity で作ったアプリにログを埋め込んでも、Oculus Goでは .apk としてインストールされるので、UnityのConsoleにはログが表示されない...

サンプルとして、次のログを埋め込んだとする

C#
Debug.Log("log desu.");

このログを見る方法は次の2つ

CLIで確認

Oculus はAndroidベースなので adb コマンドを使う

terminal
$ adb logcat -s Unity ActivityManager PackageManager

そうすると、ログが出てくる

terminal
$ adb logcat -s Unity ActivityManager PackageManager
 :
06-12 15:05:43.827 10258 10273 I Unity   : log desu.
 :

Android Device Monitorで確認

Android/sdk/tools/ にある monitor を起動する

terminal
$ $ $HOME/Library/Android/sdk/tools/monitor

見やすいように Filter を設定

ログに表示されている

6
7
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
6
7