docs.unity3d.com
    Show / Hide Table of Contents

    Class AdaptivePerformancePackageMetadataStore

    Provide access to the metadata store. Currently only usable as a way to assign and remove loaders to or from an AdaptivePerformanceManagerSettings instance.

    Inheritance
    Object
    AdaptivePerformancePackageMetadataStore
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.AdaptivePerformance.Editor.Metadata
    Syntax
    [InitializeOnLoad]
    public class AdaptivePerformancePackageMetadataStore

    Methods

    AssignLoader(AdaptivePerformanceManagerSettings, String, BuildTargetGroup)

    Assigns a loader of type loaderTypeName to the settings instance. Will instantiate an instance if one can't be found in the user's project folder before assigning it.

    Declaration
    public static bool AssignLoader(AdaptivePerformanceManagerSettings settings, string loaderTypeName, BuildTargetGroup buildTargetGroup)
    Parameters
    Type Name Description
    AdaptivePerformanceManagerSettings settings

    An instance of AdaptivePerformanceManagerSettings to add the loader to.

    String loaderTypeName

    The full type name for the loader instance to assign to settings.

    UnityEditor.BuildTargetGroup buildTargetGroup

    The build target group being assigned to.

    Returns
    Type Description
    Boolean

    True if assignment succeeds, false if not.

    RemoveLoader(AdaptivePerformanceManagerSettings, String, BuildTargetGroup)

    Remove a previously assigned loader from settings. If the loader type is unknown or an instance of the loader can't be found in the project folder, no action is taken.

    Removal will not delete the instance from the project folder.

    Declaration
    public static bool RemoveLoader(AdaptivePerformanceManagerSettings settings, string loaderTypeName, BuildTargetGroup buildTargetGroup)
    Parameters
    Type Name Description
    AdaptivePerformanceManagerSettings settings

    An instance of AdaptivePerformanceManagerSettings to add the loader to.

    String loaderTypeName

    The full type name for the loader instance to remove from settings.

    UnityEditor.BuildTargetGroup buildTargetGroup

    The build target group being removed from.

    Returns
    Type Description
    Boolean

    True if removal succeeds, false if not.

    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