Version: 2022.1
Deep linking on UWP
Universal Windows Platform: Advanced Topics

UWP Profiler

The Unity profiler is a tool you can use to get performance information about your application. For more information, see documentation on Profiling your application.

To connect the Unity profiler to a running Universal Windows Application, perform the following steps:

  1. Go to Edit > Project Settings > Player.
  2. Select the Publishing Settings > Capabilities section.
  3. Enable Private Networks Capability.
  4. Enable Internet (Client & Server) Capability.
  5. If you’ve already selected the Autoconnect Profiler checkbox in Build Settings, the profiler should connect automatically to the Universal Windows App. If not, you have to explicitly select it in Unity in Window > Analysis > Profiler > Active Profiler.
  6. Build the Universal Windows App Visual Studio solution from Unity.
  7. Build and run the application.

Due to UWP restrictions, you won’t be able to connect the profiler if the application is running on the same machine. You have to run the Unity Editor on one machine and UWP on another machine. For example, if you’re running the Unity Editor and UWP on the same PC, you won’t be able to connect the profiler. The only exception to this rule is the Autoconnect Profiler build option, which makes the application connect to the Editor instead.

You must also ensure that the machine where the Unity Editor is running and the machine where the Universal Windows App is running are on the same subnet.

Note: The profiler doesn’t work on Master configuration.

Deep linking on UWP
Universal Windows Platform: Advanced Topics
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961