docs.unity3d.com
    Show / Hide Table of Contents

    Interface IAdaptivePerformancePackage

    Implement this interface to provide package-level information and actions.

    Adaptive Performance Provider Management will reflect on all types in the project to find implementers of this interface. These instances are used to get information required to integrate your package with the Adaptive Performance Provider Management system.

    Namespace: UnityEditor.AdaptivePerformance.Editor.Metadata
    Syntax
    public interface IAdaptivePerformancePackage

    Properties

    metadata

    Returns an instance of IAdaptivePerformancePackageMetadata. Information will be used to allow the Adaptive Performance Provider Management to provide settings and loaders through the settings UI.

    Declaration
    IAdaptivePerformancePackageMetadata metadata { get; }
    Property Value
    Type Description
    IAdaptivePerformancePackageMetadata

    Methods

    PopulateNewSettingsInstance(ScriptableObject)

    Allows the package to configure new settings passed in.

    Declaration
    bool PopulateNewSettingsInstance(ScriptableObject obj)
    Parameters
    Type Name Description
    UnityEngine.ScriptableObject obj

    ScriptableObject instance that represents an instance of the settings type provided by settingsType.

    Returns
    Type Description
    Boolean

    True if the operation succeeded, false if not. If implementation is empty, just return true.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023