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

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.
主站蜘蛛池模板: 梅州市| 毕节市| 高陵县| 额济纳旗| 海阳市| 望奎县| 伊宁市| 德昌县| 兴安县| 清徐县| 长沙市| 凤凰县| 绩溪县| 左贡县| 五大连池市| 融水| 乐陵市| 塘沽区| 确山县| 分宜县| 印江| 包头市| 称多县| 南漳县| 叙永县| 突泉县| 阿鲁科尔沁旗| 富宁县| 新绛县| 濉溪县| 封开县| 科技| 敖汉旗| 垣曲县| 南和县| 邵阳县| 全州县| 如东县| 即墨市| 罗定市| 晋宁县|