官术网_书友最值得收藏!

  • Unity Game Optimization
  • Dr. Davide Aversa Chris Dickinson
  • 207字
  • 2021-06-24 12:12:54

Editor or standalone instances

In this instance, the only way to access the Profiler is to launch it through the Unity Editor and connect it to a running instance of our application. We will use the same Profiler windows irrespective of whether we execute our game in Playmode within the Editor, running a standalone application on the local or remote device, or wish to profile the Editor itself.

To open Profiler, navigate to Window | Analysis Profiler within the Editor or use Ctrl + 7 (or cmd + 7 on macOS):

If the Editor is already running in Playmode, then we should see profiling data continuously populating the Profiler window.

To profile standalone projects, ensure that the Development Build and Autoconnect Profiler flags are enabled when the application is built.

Choosing whether to profile an Editor-based instance (through the Editor's Playmode) or a standalone instance (built and running separately from the Editor) can be achieved through the Connected Player option in the Profiler window:

Note that switching back to the Unity Editor while profiling a separate standalone project will halt all data collection since the application will not be updated while it is in the background.
主站蜘蛛池模板: 称多县| 富锦市| 上林县| 区。| 汝城县| 射阳县| 略阳县| 公主岭市| 秦皇岛市| 阳江市| 绥芬河市| 娄烦县| 荣昌县| 广平县| 大关县| 舒兰市| 巴塘县| 秦皇岛市| 永嘉县| 公安县| 仁寿县| 互助| 阿克苏市| 北辰区| 南投市| 赤城县| 东丰县| 旬阳县| 吴堡县| 南丹县| 六枝特区| 莎车县| 北海市| 上思县| 湖州市| 房山区| 林芝县| 晋江市| 韩城市| 滨州市| 岑溪市|