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

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.
主站蜘蛛池模板: 大渡口区| 和平县| 陆丰市| 宝山区| 达孜县| 乌拉特后旗| 宁远县| 阜新| 秦皇岛市| 禄丰县| 武邑县| 文安县| 普陀区| 全椒县| 阳朔县| 阳山县| 濮阳县| 荥经县| 斗六市| 迁安市| 江华| 大洼县| 敖汉旗| 耿马| 青海省| 贡觉县| 海丰县| 霍州市| 陵川县| 宜兴市| 普兰店市| 曲沃县| 简阳市| 乌兰浩特市| 克什克腾旗| 堆龙德庆县| 井陉县| 旬阳县| 芜湖县| 雅安市| 疏勒县|