docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AdaptivePerformanceLoaderHelper

    Adaptive Performance Loader abstract subclass used as a base class for specific provider implementations. Class provides some helper logic that can be used to handle subsystem handling in a typesafe manner, reducing potential boilerplate code.

    Inheritance
    object
    Object
    ScriptableObject
    AdaptivePerformanceLoader
    AdaptivePerformanceLoaderHelper
    FailToLoadLoader
    SimulatorProviderLoader
    TestLoaderBase
    StandaloneLoader
    Inherited Members
    AdaptivePerformanceLoader.Initialized
    AdaptivePerformanceLoader.Running
    AdaptivePerformanceLoader.Initialize()
    AdaptivePerformanceLoader.Start()
    AdaptivePerformanceLoader.Stop()
    AdaptivePerformanceLoader.GetDefaultSubsystem()
    AdaptivePerformanceLoader.GetSettings()
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.InstantiateAsync<T>(T)
    Object.InstantiateAsync<T>(T, Transform)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int)
    Object.InstantiateAsync<T>(T, int, Transform)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, InstantiateParameters)
    Object.InstantiateAsync<T>(T, int, InstantiateParameters)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion, InstantiateParameters)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, InstantiateParameters)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Scene)
    Object.Instantiate<T>(T, InstantiateParameters)
    Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.AdaptivePerformance
    Assembly: Unity.AdaptivePerformance.dll
    Syntax
    public abstract class AdaptivePerformanceLoaderHelper : AdaptivePerformanceLoader

    Fields

    m_SubsystemInstanceMap

    Map of loaded susbsystems. Used so Unity doesn't always have to call AdaptivePerformanceManger and do a manual search to find the instance it loaded.

    Declaration
    protected Dictionary<Type, ISubsystem> m_SubsystemInstanceMap
    Field Value
    Type Description
    Dictionary<Type, ISubsystem>

    Methods

    CreateSubsystem<TDescriptor, TSubsystem>(List<TDescriptor>, string)

    Creates a subsystem with a given list of descriptors and a specific subsystem id.

    Declaration
    protected void CreateSubsystem<TDescriptor, TSubsystem>(List<TDescriptor> descriptors, string id) where TDescriptor : ISubsystemDescriptor where TSubsystem : ISubsystem
    Parameters
    Type Name Description
    List<TDescriptor> descriptors

    List of TDescriptor instances to use for subsystem matching.

    string id

    The identifier key of the particualr subsystem implementation being requested.

    Type Parameters
    Name Description
    TDescriptor

    The descriptor type being passed in.

    TSubsystem

    The subsystem type being requested.

    Deinitialize()

    Override of Deinitialize() to provide for clearing the instance map.

    If you override Deinitialize() in your subclass, you must call the base implementation to allow the instance map tp be cleaned up correctly.

    Declaration
    public override bool Deinitialize()
    Returns
    Type Description
    bool

    True if de-initialization was successful.

    Overrides
    AdaptivePerformanceLoader.Deinitialize()

    DestroySubsystem<T>()

    Destroy a subsystem instance of a given type. Subsystem is assumed to already be loaded from a previous call to CreateSubsystem.

    Declaration
    protected void DestroySubsystem<T>() where T : class, ISubsystem
    Type Parameters
    Name Description
    T

    A subclass of UnityEngine.ISubsystem

    GetLoadedSubsystem<T>()

    Gets the loaded subsystem of the specified type. This is implementation-specific, because implementations contain data on what they have loaded and how best to get it.

    Declaration
    public override T GetLoadedSubsystem<T>() where T : class, ISubsystem
    Returns
    Type Description
    T

    The loaded subsystem, or null if no subsystem found.

    Type Parameters
    Name Description
    T

    Type of the subsystem to get.

    Overrides
    AdaptivePerformanceLoader.GetLoadedSubsystem<T>()

    StartSubsystem<T>()

    Start a subsystem instance of a given type. Subsystem is assumed to already be loaded from a previous call to CreateSubsystem.

    Declaration
    protected void StartSubsystem<T>() where T : class, ISubsystem
    Type Parameters
    Name Description
    T

    A subclass of UnityEngine.ISubsystem

    StopSubsystem<T>()

    Stop a subsystem instance of a given type. Subsystem is assumed to already be loaded from a previous call to CreateSubsystem.

    Declaration
    protected void StopSubsystem<T>() where T : class, ISubsystem
    Type Parameters
    Name Description
    T

    A subclass of UnityEngine.ISubsystem

    WasAssignedToBuildTarget(BuildTargetGroup)

    Declaration
    public virtual void WasAssignedToBuildTarget(BuildTargetGroup buildTargetGroup)
    Parameters
    Type Name Description
    BuildTargetGroup buildTargetGroup

    WasUnassignedFromBuildTarget(BuildTargetGroup)

    Declaration
    public virtual void WasUnassignedFromBuildTarget(BuildTargetGroup buildTargetGroup)
    Parameters
    Type Name Description
    BuildTargetGroup buildTargetGroup
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)