LoginSignup
12
10

More than 5 years have passed since last update.

Unity2017からProfilerのTCPポートが34999に変わった件

Posted at

UnityEditorから"Build & Run"している場合は関係ないんですが、コマンドラインビルドで生成したapkをAndroid実機で実行してPC直結でプロファイリングするには、ひと手間かかります。

…が、なんと、その手順がUnity2017からこっそり変わっています。

Unity5.6
adb forward tcp:54999 localabstract:Unity-{insert bundle identifier here}

Unity2017.1
adb forward tcp:34999 localabstract:Unity-{insert bundle identifier here}

※{insert bundle identifier here}はPlayer Settingsで設定したPackage Name(旧Bundle Identifier)で置き換え。
※Unity起動前に実行しないと反映されないので注意。

分かります? adb.exeでトンネリングするTCPポート番号が54999から34999に変わっています。最初は誤記かと思ったんですが、確かに変更しないと繋がりませんでした。んなもん分かるかー!!

コネタでした。

12
10
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
12
10