Class FileRegistry
Namespace: UnityEditor.AddressableAssets.Build
Syntax
public class FileRegistry
Constructors
FileRegistry()
Declaration
public FileRegistry()
Methods
AddFile(String)
Declaration
public void AddFile(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path |
GetFilePathForBundle(String)
Given a bundle name, determine the file path for the bundle.
Declaration
public string GetFilePathForBundle(string bundleName)
Parameters
Type | Name | Description |
---|---|---|
String | bundleName | The name of the bundle. |
Returns
Type | Description |
---|---|
String | The full file path. |
GetFilePaths()
Declaration
public IEnumerable<string> GetFilePaths()
Returns
Type | Description |
---|---|
IEnumerable<String> |
RemoveFile(String)
Declaration
public void RemoveFile(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path |
ReplaceBundleEntry(String, String)
Replace an entry in the File Registry with a new bundle name.
Declaration
public bool ReplaceBundleEntry(string bundleName, string newFileRegistryEntry)
Parameters
Type | Name | Description |
---|---|---|
String | bundleName | The bundle name to replace. |
String | newFileRegistryEntry | The new file registry bundle name. |
Returns
Type | Description |
---|---|
Boolean | Returns true if a successful replacement occured. |