跳到主要内容
版本:2.3.x

Class AssetDependencyDatabase

资源依赖数据库

Assembly: YooAsset.Editor.dll
Declaration
public class AssetDependencyDatabase

Methods

CreateDatabase(bool, string)

创建缓存数据库

Declaration
public void CreateDatabase(bool readCacheDatabaseFile, string databaseFilePath)
Parameters
TypeName
System.BooleanreadCacheDatabaseFile
System.StringdatabaseFilePath

SaveDatabase()

保存缓存数据库

Declaration
public void SaveDatabase()

ClearDatabase(bool)

清理缓存数据库

Declaration
public void ClearDatabase(bool deleteDatabaseFile)
Parameters
TypeName
System.BooleandeleteDatabaseFile

GetDependencies(string, bool)

获取资源的依赖列表

Declaration
public string[] GetDependencies(string assetPath, bool recursive)
Returns

System.String[]

Parameters
TypeName
System.StringassetPath
System.Booleanrecursive