Class AddressableAssetSettings
Inheritance
System.Object
AddressableAssetSettings
Syntax
public class AddressableAssetSettings : ScriptableObject, ISerializationCallbackReceiver
Fields
DefaultConfigFolder
Declaration
public const string DefaultConfigFolder = "Assets/AddressableAssetsData"
Field Value
Type |
Description |
System.String |
|
DefaultConfigName
Declaration
public const string DefaultConfigName = "AddressableAssetSettings"
Field Value
Type |
Description |
System.String |
|
OnModification
Declaration
public Action<AddressableAssetSettings, AddressableAssetSettings.ModificationEvent, object> OnModification
Field Value
Properties
activeProfileId
Declaration
public string activeProfileId { get; set; }
Property Value
Type |
Description |
System.String |
|
buildSettings
Declaration
public AddressableAssetSettings.BuildSettings buildSettings { get; }
Property Value
currentHash
Declaration
public Hash128 currentHash { get; }
Property Value
DefaultGroup
Declaration
public AddressableAssetSettings.AssetGroup DefaultGroup { get; }
Property Value
groups
Declaration
public List<AddressableAssetSettings.AssetGroup> groups { get; }
Property Value
profileSettings
Declaration
public AddressableAssetSettings.ProfileSettings profileSettings { get; }
Property Value
Methods
AddLabel(String, Boolean)
Declaration
public void AddLabel(string label, bool postEvent = true)
Parameters
Type |
Name |
Description |
System.String |
label |
|
System.Boolean |
postEvent |
|
ConvertGroup(AddressableAssetSettings.AssetGroup, String)
Declaration
public void ConvertGroup(AddressableAssetSettings.AssetGroup group, string processorType)
Parameters
CreateGroup(String, String, Boolean)
Declaration
public AddressableAssetSettings.AssetGroup CreateGroup(string name, string processorType, bool setAsDefaultGroup = false)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
processorType |
|
System.Boolean |
setAsDefaultGroup |
|
Returns
CreateOrMoveEntry(String, AddressableAssetSettings.AssetGroup, Boolean, Boolean)
Declaration
public AddressableAssetSettings.AssetGroup.AssetEntry CreateOrMoveEntry(string guid, AddressableAssetSettings.AssetGroup targetParent, bool readOnly = false, bool postEvent = true)
Parameters
Returns
FindAssetEntry(String)
Declaration
public AddressableAssetSettings.AssetGroup.AssetEntry FindAssetEntry(string guid)
Parameters
Type |
Name |
Description |
System.String |
guid |
|
Returns
FindGroup(String)
Declaration
public AddressableAssetSettings.AssetGroup FindGroup(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
GetAllAssets()
Declaration
public List<AddressableAssetSettings.AssetGroup.AssetEntry> GetAllAssets()
Returns
GetDefault(Boolean, Boolean)
Declaration
public static AddressableAssetSettings GetDefault(bool create, bool browse)
Parameters
Type |
Name |
Description |
System.Boolean |
create |
|
System.Boolean |
browse |
|
Returns
GetLabelMask(HashSet<String>)
Declaration
public long GetLabelMask(HashSet<string> maskSet)
Parameters
Type |
Name |
Description |
HashSet<System.String> |
maskSet |
|
Returns
Type |
Description |
System.Int64 |
|
IsNotUniqueGroupName(String)
Declaration
public bool IsNotUniqueGroupName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
MoveAssetsFromResources(Dictionary<String, String>, AddressableAssetSettings.AssetGroup)
Declaration
public void MoveAssetsFromResources(Dictionary<string, string> guidToNewPath, AddressableAssetSettings.AssetGroup targetParent)
Parameters
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()
RemoveAssetEntry(String, Boolean)
Declaration
public bool RemoveAssetEntry(string guid, bool postEvent = true)
Parameters
Type |
Name |
Description |
System.String |
guid |
|
System.Boolean |
postEvent |
|
Returns
Type |
Description |
System.Boolean |
|
RemoveGroup(AddressableAssetSettings.AssetGroup, Boolean)
Declaration
public void RemoveGroup(AddressableAssetSettings.AssetGroup g, bool postEvent = true)
Parameters
RemoveLabel(String, Boolean)
Declaration
public void RemoveLabel(string label, bool postEvent = true)
Parameters
Type |
Name |
Description |
System.String |
label |
|
System.Boolean |
postEvent |
|