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 AddressableAssetGroup DefaultGroup { get; }
Property Value
groups
Declaration
public List<AddressableAssetGroup> 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(AddressableAssetGroup, String)
Declaration
public void ConvertGroup(AddressableAssetGroup group, string processorType)
Parameters
CreateGroup(String, String, Boolean)
Declaration
public AddressableAssetGroup CreateGroup(string name, string processorType, bool setAsDefaultGroup = false)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
processorType |
|
System.Boolean |
setAsDefaultGroup |
|
Returns
CreateOrMoveEntry(String, AddressableAssetGroup, Boolean, Boolean)
Declaration
public AddressableAssetEntry CreateOrMoveEntry(string guid, AddressableAssetGroup targetParent, bool readOnly = false, bool postEvent = true)
Parameters
Type |
Name |
Description |
System.String |
guid |
|
AddressableAssetGroup |
targetParent |
|
System.Boolean |
readOnly |
|
System.Boolean |
postEvent |
|
Returns
FindAssetEntry(String)
Declaration
public AddressableAssetEntry FindAssetEntry(string guid)
Parameters
Type |
Name |
Description |
System.String |
guid |
|
Returns
FindGroup(String)
Declaration
public AddressableAssetGroup FindGroup(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
GetAllAssets()
Declaration
public List<AddressableAssetEntry> 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>, AddressableAssetGroup)
Declaration
public void MoveAssetsFromResources(Dictionary<string, string> guidToNewPath, AddressableAssetGroup targetParent)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Dictionary<System.String, System.String> |
guidToNewPath |
|
AddressableAssetGroup |
targetParent |
|
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(AddressableAssetGroup, Boolean)
Declaration
public void RemoveGroup(AddressableAssetGroup 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 |
|