Class AddressableAssetSettingsDefaultObject
Class used to get and set the default Addressable Asset settings object.
Inherited Members
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 |
---|---|
String |
kDefaultConfigFolder
The default folder for the serialized version of this class.
Declaration
public const string kDefaultConfigFolder = "Assets/AddressableAssetsData"
Field Value
Type | Description |
---|---|
String |
kDefaultConfigObjectName
The name of the default config object
Declaration
public const string kDefaultConfigObjectName = "com.unity.addressableassets"
Field Value
Type | Description |
---|---|
String |
Properties
DefaultAssetPath
Default path for addressable asset settings assets.
Declaration
public static string DefaultAssetPath { get; }
Property Value
Type | Description |
---|---|
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 |
---|---|
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 |
---|---|---|
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. |