Class ResourceManagerConfig | Addressables | 1.13.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class ResourceManagerConfig

    Resource Manager Config utility class.

    Inheritance
    Object
    ResourceManagerConfig
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.ResourceManagement.Util
    Syntax
    public static class ResourceManagerConfig

    Methods

    CreateArrayResult(Type, Object[])

    Used to create an operation result that has multiple items.

    Declaration
    public static Array CreateArrayResult(Type type, object[] allAssets)
    Parameters
    Type Name Description
    Type type

    The type of the result.

    Object[] allAssets

    The result objects.

    Returns
    Type Description
    Array

    Returns Array object with result items.

    CreateArrayResult<TObject>(Object[])

    Used to create an operation result that has multiple items.

    Declaration
    public static TObject CreateArrayResult<TObject>(object[] allAssets)
        where TObject : class
    Parameters
    Type Name Description
    Object[] allAssets

    The result objects.

    Returns
    Type Description
    TObject

    Returns result Array as TObject.

    Type Parameters
    Name Description
    TObject

    The type of the result.

    CreateListResult(Type, Object[])

    Used to create an operation result that has multiple items.

    Declaration
    public static IList CreateListResult(Type type, object[] allAssets)
    Parameters
    Type Name Description
    Type type

    The type of the result objects.

    Object[] allAssets

    The result objects.

    Returns
    Type Description
    IList

    An IList of the resulting objects.

    CreateListResult<TObject>(Object[])

    Used to create an operation result that has multiple items.

    Declaration
    public static TObject CreateListResult<TObject>(object[] allAssets)
    Parameters
    Type Name Description
    Object[] allAssets

    The result objects.

    Returns
    Type Description
    TObject

    An IList of the resulting objects converted to TObject.

    Type Parameters
    Name Description
    TObject

    The type of the result.

    IsInstance<T1, T2>()

    Check if one type is an instance of another type.

    Declaration
    public static bool IsInstance<T1, T2>()
    Returns
    Type Description
    Boolean

    Returns true if T2 is a base type of T1.

    Type Parameters
    Name Description
    T1

    Expected base type.

    T2

    Expected child type.

    IsPathRemote(String)

    Check to see if a path is remote or not.

    Declaration
    public static bool IsPathRemote(string path)
    Parameters
    Type Name Description
    String path

    The path to check.

    Returns
    Type Description
    Boolean

    Returns true if path is remote.

    ShouldPathUseWebRequest(String)

    Check if path should use WebRequest. A path should use WebRequest for remote paths and platforms that require WebRequest to load locally.

    Declaration
    public static bool ShouldPathUseWebRequest(string path)
    Parameters
    Type Name Description
    String path

    The path to check.

    Returns
    Type Description
    Boolean

    Returns true if path should use WebRequest.

    In This Article
    • Methods
      • CreateArrayResult(Type, Object[])
      • CreateArrayResult<TObject>(Object[])
      • CreateListResult(Type, Object[])
      • CreateListResult<TObject>(Object[])
      • IsInstance<T1, T2>()
      • IsPathRemote(String)
      • ShouldPathUseWebRequest(String)
    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