Class AddressableAssetSettingsDefaultObject | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class AddressableAssetSettingsDefaultObject

    Inheritance
    System.Object
    AddressableAssetSettingsDefaultObject
    Namespace: UnityEditor.AddressableAssets
    Syntax
    public class AddressableAssetSettingsDefaultObject : ScriptableObject

    Fields

    kDefaultConfigAssetName

    Default name for the addressable assets settings

    Declaration
    public const string kDefaultConfigAssetName = "AddressableAssetSettings"
    Field Value
    Type Description
    System.String

    kDefaultConfigFolder

    The default folder for the serialized version of this class.

    Declaration
    public const string kDefaultConfigFolder = "Assets/AddressableAssetsData"
    Field Value
    Type Description
    System.String

    kDefaultConfigObjectName

    The name of the default config object

    Declaration
    public const string kDefaultConfigObjectName = "com.unity.addressableassets"
    Field Value
    Type Description
    System.String

    Properties

    DefaultAssetPath

    Default path for addressable asset settings assets.

    Declaration
    public static string DefaultAssetPath { get; }
    Property Value
    Type Description
    System.String

    Settings

    Gets the default addressable asset settings object. This will return null during editor startup if EditorApplication.isUpdating or EditorApplication.isCompiling are true.

    Declaration
    public static AddressableAssetSettings Settings { get; set; }
    Property Value
    Type Description
    AddressableAssetSettings

    SettingsExists

    Used to determine if a default settings asset exists.

    Declaration
    public static bool SettingsExists { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    GetSettings(Boolean)

    Gets the settings object with the option to create a new one if it does not exist.

    Declaration
    public static AddressableAssetSettings GetSettings(bool create)
    Parameters
    Type Name Description
    System.Boolean create

    If true and no settings object exists, a new one will be created using the default config folder and asset name.

    Returns
    Type Description
    AddressableAssetSettings

    The default settings object.

    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