Unity 2Dゲーム開発日記 19日目 ~Android~
Android端末でのデバッグ
「Unity Remote 4」というのがあります。
Android端末で、Google Playからインストールします。
- Edit - Project Settings - Editor - Unity Remote - any Android Device
- 各端末ごとのドライバをインストールする(ADBっていうのかな?)
- Android端末のUSBデバッグを有効にします。
- Unity Remote 4 を起動した状態で UnityのPlayボタン押すとAndroid端末のほうにも画面が出る!
って感じでビルドしなくても良かった。
PCでやってたらボタンの大きさいい感じかと思ってたけど、スマホだとかなり小さく感じたよ。
横持ちの状態にするには
Build Settings - Player Settings - Resolution and Presentation - Orientation - Landscape Left
スクリプトからもいじれるけども。