docs.unity.cn
    Show / Hide Table of Contents

    Installing Adaptive Performance

    You can install the package in one of the following ways:

    • From the Project Settings window
    • From the Unity Package Manager
    • Manually from the Package Manifest

    Project Settings

    Access the Project Settings window (menu: Edit > Project Settings > Adaptive Performance), then click the Install Adaptive Performance button.

    Adaptive Performance Settings if the package was not installed yet.

    Unity Package Manager

    Use the Unity Package Manager to install the Adaptive Performance package.

    Adaptive Performance package listed and selected to install in the Package Manager.

    Package manifest

    You can also install Adaptive Performance manually. To do this, add a reference to Adaptive Performance in your Project's Packages/manifest.json file. There are two ways you can reference a specific version of the Adaptive Performance package, depending on how you use it.

    Using a production version of the package

    You can point the Package Manager at a publicly available version. To do this manually, add it to manifest.json:

        "dependencies": {
            //...
            "com.unity.adaptiveperformance":"<full version number>"
        }
    

    Using a local clone of the package

    If you want to use a cloned version of the package, you can point the Package Manager at a local folder as the package location:

        "dependencies": {
            //...
            "com.unity.adaptiveperformance":"file:path/to/package/root"
        }
    

    Note: The root of the package folder isn't necessarily the root of the cloned repository. The root of the package folder is the folder that contains the package.json file.

    Provider installation

    Adaptive Performance only works in combination with data provider subsystems. You can install and enable these providers for individual platforms from the Adaptive Performance section of the Project Settings window.

    Samsung Android provider in the provider list is installed and ready to use.

    To use Adaptive Performance, you must install and activate at least one subsystem. This version of Adaptive Performance supports the following subsystems:

    • Samsung (Android)
    • Simulator (Desktop)
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 09 March 2021