# AssetDatabase

> An Interface for accessing assets and performing operations on assets.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public sealed class AssetDatabase
```

## Static Fields

| Value                                                                                                                       | Description                                                                                                    |
| --------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| [onImportPackageItemsCompleted](/engine/6000.7/script-reference/unityeditor/assetdatabase/onimportpackageitemscompleted.md) | Callback raised whenever a package import successfully completes that lists the items selected to be imported. |

## Static Properties

| Property                                                                                                                        | Description                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| [ActiveRefreshImportMode](/engine/6000.7/script-reference/unityeditor/assetdatabase/activerefreshimportmode.md)                 | The refresh import mode that the Asset Database uses to import assets.                                      |
| [DesiredWorkerCount](/engine/6000.7/script-reference/unityeditor/assetdatabase/desiredworkercount.md)                           | The number of import worker processes the asset pipeline aims to maintain during an Asset Database refresh. |
| [GlobalArtifactDependencyVersion](/engine/6000.7/script-reference/unityeditor/assetdatabase/globalartifactdependencyversion.md) | Changes during Refresh if anything has changed that can invalidate any artifact.                            |
| [GlobalArtifactProcessedVersion](/engine/6000.7/script-reference/unityeditor/assetdatabase/globalartifactprocessedversion.md)   | Changes whenever a new artifact is added to the artifact database.                                          |

## Static Methods

| Method                                                                                                                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ----------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AddObjectToAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/addobjecttoasset.md)                                                     | Adds `objectToAdd` to an existing asset at `path`.                                                                                                                                                                                                                                                                                                                                                                                |
| [AllowAutoRefresh](/engine/6000.7/script-reference/unityeditor/assetdatabase/allowautorefresh.md)                                                     | Decrements an internal counter which Unity uses to determine whether to allow automatic AssetDatabase refreshing behavior.                                                                                                                                                                                                                                                                                                        |
| [AssetPathExists](/engine/6000.7/script-reference/unityeditor/assetdatabase/assetpathexists.md)                                                       | Check whether an asset exists at the given path in the database.                                                                                                                                                                                                                                                                                                                                                                  |
| [AssetPathToGUID](/engine/6000.7/script-reference/unityeditor/assetdatabase/assetpathtoguid.md)                                                       | Get the GUID for the asset at `path`.                                                                                                                                                                                                                                                                                                                                                                                             |
| [CanConnectToCacheServer](/engine/6000.7/script-reference/unityeditor/assetdatabase/canconnecttocacheserver.md)                                       | Checks the availability of the Cache Server.                                                                                                                                                                                                                                                                                                                                                                                      |
| [CanOpenAssetInEditor](/engine/6000.7/script-reference/unityeditor/assetdatabase/canopenassetineditor.md)                                             | Checks if Unity can open an asset in the Editor.                                                                                                                                                                                                                                                                                                                                                                                  |
| [CanOpenForEdit](/engine/6000.7/script-reference/unityeditor/assetdatabase/canopenforedit.md)                                                         | Query whether an Asset file can be opened for editing in version control and is not exclusively locked by another user or otherwise unavailable.                                                                                                                                                                                                                                                                                  |
| [ClearImporterOverride](/engine/6000.7/script-reference/unityeditor/assetdatabase/clearimporteroverride.md)                                           | Clears the importer override for the asset.                                                                                                                                                                                                                                                                                                                                                                                       |
| [ClearLabels](/engine/6000.7/script-reference/unityeditor/assetdatabase/clearlabels.md)                                                               | Removes all labels attached to an asset.                                                                                                                                                                                                                                                                                                                                                                                          |
| [CloseCacheServerConnection](/engine/6000.7/script-reference/unityeditor/assetdatabase/closecacheserverconnection.md)                                 | Closes an active cache server connection. If no connection is active, then it does nothing.                                                                                                                                                                                                                                                                                                                                       |
| [Contains](/engine/6000.7/script-reference/unityeditor/assetdatabase/contains.md)                                                                     | Checks whether a given object is an asset.                                                                                                                                                                                                                                                                                                                                                                                        |
| [CopyAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/copyasset.md)                                                                   | Duplicates the asset at `path` and stores it at `newPath`.                                                                                                                                                                                                                                                                                                                                                                        |
| [CopyAssets](/engine/6000.7/script-reference/unityeditor/assetdatabase/copyassets.md)                                                                 | Duplicates assets in `paths` and stores them in `newPaths`.                                                                                                                                                                                                                                                                                                                                                                       |
| [CreateAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/createasset.md)                                                               | Creates a new asset in a native Unity format.                                                                                                                                                                                                                                                                                                                                                                                     |
| [CreateFolder](/engine/6000.7/script-reference/unityeditor/assetdatabase/createfolder.md)                                                             | Creates a new folder, in the specified parent folder.                                                                                                                                                                                                                                                                                                                                                                             |
| [DeleteAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/deleteasset.md)                                                               | Deletes the specified asset or folder.                                                                                                                                                                                                                                                                                                                                                                                            |
| [DeleteAssets](/engine/6000.7/script-reference/unityeditor/assetdatabase/deleteassets.md)                                                             | Lets you delete multiple assets or folders at once with performance benefits under version control.                                                                                                                                                                                                                                                                                                                               |
| [DisallowAutoRefresh](/engine/6000.7/script-reference/unityeditor/assetdatabase/disallowautorefresh.md)                                               | Increments an internal counter which Unity uses to determine whether to allow automatic AssetDatabase refreshing behavior.                                                                                                                                                                                                                                                                                                        |
| [EntityIdsToGUIDs](/engine/6000.7/script-reference/unityeditor/assetdatabase/entityidstoguids.md)                                                     | Sets a GUID for every valid EntityId that is an asset.                                                                                                                                                                                                                                                                                                                                                                            |
| [ExtractAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/extractasset.md)                                                             | Creates an external Asset from an object (such as a Material) by extracting it from within an imported asset (such as an FBX file).                                                                                                                                                                                                                                                                                               |
| [FindAssetGUIDs](/engine/6000.7/script-reference/unityeditor/assetdatabase/findassetguids.md)                                                         | Searches the asset database with a filter string and returns an array of GUIDs.                                                                                                                                                                                                                                                                                                                                                   |
| [FindAssets](/engine/6000.7/script-reference/unityeditor/assetdatabase/findassets.md)                                                                 | Search the asset database using the search filter string.                                                                                                                                                                                                                                                                                                                                                                         |
| [ForceReserializeAssets](/engine/6000.7/script-reference/unityeditor/assetdatabase/forcereserializeassets.md)                                         | Forcibly load and re-serialize the given assets, flushing any outstanding data changes to disk.                                                                                                                                                                                                                                                                                                                                   |
| [ForceToDesiredWorkerCount](/engine/6000.7/script-reference/unityeditor/assetdatabase/forcetodesiredworkercount.md)                                   | Forces the Editor to use the desired amount of worker processes by either spawning new worker processes or shutting down idle worker processes.                                                                                                                                                                                                                                                                                   |
| [GenerateUniqueAssetPath](/engine/6000.7/script-reference/unityeditor/assetdatabase/generateuniqueassetpath.md)                                       | Creates a new unique path for an asset.                                                                                                                                                                                                                                                                                                                                                                                           |
| [GetAllAssetBundleNames](/engine/6000.7/script-reference/unityeditor/assetdatabase/getallassetbundlenames.md)                                         | Obtain all the AssetBundle names registered in the Asset Database.                                                                                                                                                                                                                                                                                                                                                                |
| [GetAssetBundleDependencies](/engine/6000.7/script-reference/unityeditor/assetdatabase/getassetbundledependencies.md)                                 | Given an **assetBundleName**, returns the list of AssetBundles that it depends on.                                                                                                                                                                                                                                                                                                                                                |
| [GetAssetDependencyHash](/engine/6000.7/script-reference/unityeditor/assetdatabase/getassetdependencyhash.md)                                         | Returns the hash of all the dependencies of an asset.                                                                                                                                                                                                                                                                                                                                                                             |
| [GetAssetOrScenePath](/engine/6000.7/script-reference/unityeditor/assetdatabase/getassetorscenepath.md)                                               | Returns the path name relative to the project folder where the asset or scene is stored.                                                                                                                                                                                                                                                                                                                                          |
| [GetAssetPath](/engine/6000.7/script-reference/unityeditor/assetdatabase/getassetpath.md)                                                             | Returns the path name relative to the project folder where the asset is stored.                                                                                                                                                                                                                                                                                                                                                   |
| [GetAssetPathFromTextMetaFilePath](/engine/6000.7/script-reference/unityeditor/assetdatabase/getassetpathfromtextmetafilepath.md)                     | Gets the path to the asset file associated with a text .meta file.                                                                                                                                                                                                                                                                                                                                                                |
| [GetAssetPathsFromAssetBundle](/engine/6000.7/script-reference/unityeditor/assetdatabase/getassetpathsfromassetbundle.md)                             | Returns an array containing the paths of all assets marked with the specified AssetBundle name.                                                                                                                                                                                                                                                                                                                                   |
| [GetAssetPathsFromAssetBundleAndAssetName](/engine/6000.7/script-reference/unityeditor/assetdatabase/getassetpathsfromassetbundleandassetname.md)     | Get the Asset paths for all Assets tagged with assetBundleName and named assetName.                                                                                                                                                                                                                                                                                                                                               |
| [GetAvailableImporters](/engine/6000.7/script-reference/unityeditor/assetdatabase/getavailableimporters.md)                                           | Gets the importer types associated with a given Asset path.                                                                                                                                                                                                                                                                                                                                                                       |
| [GetCachedIcon](/engine/6000.7/script-reference/unityeditor/assetdatabase/getcachedicon.md)                                                           | Retrieves the cached icon for the asset at the given path, without loading the asset. This is the icon shown in the Project window list view.                                                                                                                                                                                                                                                                                     |
| [GetCacheServerAddress](/engine/6000.7/script-reference/unityeditor/assetdatabase/getcacheserveraddress.md)                                           | Gets the IP address of the Cache Server in Editor Settings.                                                                                                                                                                                                                                                                                                                                                                       |
| [GetCacheServerEnableDownload](/engine/6000.7/script-reference/unityeditor/assetdatabase/getcacheserverenabledownload.md)                             | Gets the Cache Server Download option from Editor Settings.                                                                                                                                                                                                                                                                                                                                                                       |
| [GetCacheServerEnableUpload](/engine/6000.7/script-reference/unityeditor/assetdatabase/getcacheserverenableupload.md)                                 | Gets the Cache Server Upload option from Editor Settings.                                                                                                                                                                                                                                                                                                                                                                         |
| [GetCacheServerNamespacePrefix](/engine/6000.7/script-reference/unityeditor/assetdatabase/getcacheservernamespaceprefix.md)                           | Gets the Cache Server Namespace prefix set in Editor Settings.                                                                                                                                                                                                                                                                                                                                                                    |
| [GetCacheServerPort](/engine/6000.7/script-reference/unityeditor/assetdatabase/getcacheserverport.md)                                                 | Gets the Port number of the Cache Server in Editor Settings.                                                                                                                                                                                                                                                                                                                                                                      |
| [GetCurrentCacheServerIp](/engine/6000.7/script-reference/unityeditor/assetdatabase/getcurrentcacheserverip.md)                                       | Gets the IP address of the Cache Server currently in use by the Editor.                                                                                                                                                                                                                                                                                                                                                           |
| [GetDefaultImporter](/engine/6000.7/script-reference/unityeditor/assetdatabase/getdefaultimporter.md)                                                 | Returns the Default Importer associated with the asset located at the supplied path. When no Importer override is set, then the default importer is used. Additional Resources: [AssetDatabase.GetImporterOverride](/engine/6000.7/script-reference/unityeditor/assetdatabase/getimporteroverride.md), [AssetDatabase.ClearImporterOverride](/engine/6000.7/script-reference/unityeditor/assetdatabase/clearimporteroverride.md). |
| [GetDependencies](/engine/6000.7/script-reference/unityeditor/assetdatabase/getdependencies.md)                                                       | Returns an array of all the assets that are dependencies of the asset at the specified pathName.                                                                                                                                                                                                                                                                                                                                  |
| [GetImplicitAssetBundleName](/engine/6000.7/script-reference/unityeditor/assetdatabase/getimplicitassetbundlename.md)                                 | Returns the name of the AssetBundle that a given asset belongs to.                                                                                                                                                                                                                                                                                                                                                                |
| [GetImplicitAssetBundleVariantName](/engine/6000.7/script-reference/unityeditor/assetdatabase/getimplicitassetbundlevariantname.md)                   | Returns the name of the AssetBundle Variant that a given asset belongs to.                                                                                                                                                                                                                                                                                                                                                        |
| [GetImporterOverride](/engine/6000.7/script-reference/unityeditor/assetdatabase/getimporteroverride.md)                                               | Returns the type of the override importer.                                                                                                                                                                                                                                                                                                                                                                                        |
| [GetImporterType](/engine/6000.7/script-reference/unityeditor/assetdatabase/getimportertype.md)                                                       | Returns the type of the importer associated with an asset without loading the asset.                                                                                                                                                                                                                                                                                                                                              |
| [GetImporterTypes](/engine/6000.7/script-reference/unityeditor/assetdatabase/getimportertypes.md)                                                     | Returns the types of importers associated with the specified array of assets, without loading those assets.                                                                                                                                                                                                                                                                                                                       |
| [GetLabels](/engine/6000.7/script-reference/unityeditor/assetdatabase/getlabels.md)                                                                   | Obtains all labels of a given asset.                                                                                                                                                                                                                                                                                                                                                                                              |
| [GetMainAssetTypeAtPath](/engine/6000.7/script-reference/unityeditor/assetdatabase/getmainassettypeatpath.md)                                         | Obtains the type of the main asset object.                                                                                                                                                                                                                                                                                                                                                                                        |
| [GetMainAssetTypeFromGUID](/engine/6000.7/script-reference/unityeditor/assetdatabase/getmainassettypefromguid.md)                                     | Obtains the type of the main object of a given asset.                                                                                                                                                                                                                                                                                                                                                                             |
| [GetScriptableObjectsWithMissingScriptCount](/engine/6000.7/script-reference/unityeditor/assetdatabase/getscriptableobjectswithmissingscriptcount.md) | Checks how many unloadable ScriptableObject instances are present in the specified asset.                                                                                                                                                                                                                                                                                                                                         |
| [GetSubFolders](/engine/6000.7/script-reference/unityeditor/assetdatabase/getsubfolders.md)                                                           | Obtains the subdirectories of a given directory in the Assets folder.                                                                                                                                                                                                                                                                                                                                                             |
| [GetTextMetaFilePathFromAssetPath](/engine/6000.7/script-reference/unityeditor/assetdatabase/gettextmetafilepathfromassetpath.md)                     | Gets the path to the text .meta file associated with an asset.                                                                                                                                                                                                                                                                                                                                                                    |
| [GetTypeFromPathAndFileID](/engine/6000.7/script-reference/unityeditor/assetdatabase/gettypefrompathandfileid.md)                                     | Gets an object's type from an Asset path and a local file identifier.                                                                                                                                                                                                                                                                                                                                                             |
| [GetUnusedAssetBundleNames](/engine/6000.7/script-reference/unityeditor/assetdatabase/getunusedassetbundlenames.md)                                   | Obtains any unused AssetBundle names in the Asset Database.                                                                                                                                                                                                                                                                                                                                                                       |
| [GUIDFromAssetPath](/engine/6000.7/script-reference/unityeditor/assetdatabase/guidfromassetpath.md)                                                   | Get the GUID for the asset at `path`.                                                                                                                                                                                                                                                                                                                                                                                             |
| [GUIDToAssetPath](/engine/6000.7/script-reference/unityeditor/assetdatabase/guidtoassetpath.md)                                                       | Gets the corresponding asset path for the supplied GUID, or an empty string if the GUID can't be found.                                                                                                                                                                                                                                                                                                                           |
| [ImportAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/importasset.md)                                                               | Import asset at path.                                                                                                                                                                                                                                                                                                                                                                                                             |
| [IsAssetImportWorkerProcess](/engine/6000.7/script-reference/unityeditor/assetdatabase/isassetimportworkerprocess.md)                                 | Determines whether the current process is an Asset Import Worker process.                                                                                                                                                                                                                                                                                                                                                         |
| [IsCacheServerEnabled](/engine/6000.7/script-reference/unityeditor/assetdatabase/iscacheserverenabled.md)                                             | Checks whether the Cache Server is enabled in Project Settings.                                                                                                                                                                                                                                                                                                                                                                   |
| [IsCacheServerImportResultCachingEnabled](/engine/6000.7/script-reference/unityeditor/assetdatabase/iscacheserverimportresultcachingenabled.md)       | Checks whether the Cache Server is configured to enable import result caching. Import result caching is disabled by default for new projects in Unity 6.5.                                                                                                                                                                                                                                                                        |
| [IsConnectedToCacheServer](/engine/6000.7/script-reference/unityeditor/assetdatabase/isconnectedtocacheserver.md)                                     | Checks connection status of the Cache Server.                                                                                                                                                                                                                                                                                                                                                                                     |
| [IsDirectoryMonitoringEnabled](/engine/6000.7/script-reference/unityeditor/assetdatabase/isdirectorymonitoringenabled.md)                             | Reports whether Directory Monitoring is enabled.                                                                                                                                                                                                                                                                                                                                                                                  |
| [IsForeignAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/isforeignasset.md)                                                         | Determines whether a given asset is an external asset, also known as a foreign asset.                                                                                                                                                                                                                                                                                                                                             |
| [IsMainAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/ismainasset.md)                                                               | Checks whether the asset is a main asset in the Project window.                                                                                                                                                                                                                                                                                                                                                                   |
| [IsMainAssetAtPathLoaded](/engine/6000.7/script-reference/unityeditor/assetdatabase/ismainassetatpathloaded.md)                                       | Checks whether the main asset object at `assetPath` is loaded in memory.                                                                                                                                                                                                                                                                                                                                                          |
| [IsMetaFileOpenForEdit](/engine/6000.7/script-reference/unityeditor/assetdatabase/ismetafileopenforedit.md)                                           | Query whether an asset's metadata (.meta) file is open for edit in version control.                                                                                                                                                                                                                                                                                                                                               |
| [IsNativeAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/isnativeasset.md)                                                           | Determines whether the asset is a native asset.                                                                                                                                                                                                                                                                                                                                                                                   |
| [IsOpenForEdit](/engine/6000.7/script-reference/unityeditor/assetdatabase/isopenforedit.md)                                                           | Query whether an Asset file is open for editing in version control.                                                                                                                                                                                                                                                                                                                                                               |
| [IsSubAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/issubasset.md)                                                                 | Checks whether the asset is part of another asset.                                                                                                                                                                                                                                                                                                                                                                                |
| [IsValidFolder](/engine/6000.7/script-reference/unityeditor/assetdatabase/isvalidfolder.md)                                                           | Given a path to a folder, returns true if it exists, false otherwise.                                                                                                                                                                                                                                                                                                                                                             |
| [LoadAllAssetRepresentationsAtPath](/engine/6000.7/script-reference/unityeditor/assetdatabase/loadallassetrepresentationsatpath.md)                   | Obtains all sub-assets at `assetPath`.                                                                                                                                                                                                                                                                                                                                                                                            |
| [LoadAllAssetsAtPath](/engine/6000.7/script-reference/unityeditor/assetdatabase/loadallassetsatpath.md)                                               | Obtains an array of all assets at `assetPath`.                                                                                                                                                                                                                                                                                                                                                                                    |
| [LoadAssetAtPath](/engine/6000.7/script-reference/unityeditor/assetdatabase/loadassetatpath.md)                                                       | Retrieves the first asset object of type `type` at given path `assetPath`.                                                                                                                                                                                                                                                                                                                                                        |
| [LoadAssetByGUID](/engine/6000.7/script-reference/unityeditor/assetdatabase/loadassetbyguid.md)                                                       | Loads an asset object of type `type` by given GUID `assetGUID`.                                                                                                                                                                                                                                                                                                                                                                   |
| [LoadMainAssetAtPath](/engine/6000.7/script-reference/unityeditor/assetdatabase/loadmainassetatpath.md)                                               | Obtains the main asset object at `assetPath`.                                                                                                                                                                                                                                                                                                                                                                                     |
| [LoadObjectAsync](/engine/6000.7/script-reference/unityeditor/assetdatabase/loadobjectasync.md)                                                       | Loads a specific Object and its dependencies from an Asset file asynchronously.                                                                                                                                                                                                                                                                                                                                                   |
| [MakeEditable](/engine/6000.7/script-reference/unityeditor/assetdatabase/makeeditable.md)                                                             | Makes a file open for editing in version control.                                                                                                                                                                                                                                                                                                                                                                                 |
| [MoveAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/moveasset.md)                                                                   | Move an asset file (or folder) from one folder to another.                                                                                                                                                                                                                                                                                                                                                                        |
| [MoveAssetsToTrash](/engine/6000.7/script-reference/unityeditor/assetdatabase/moveassetstotrash.md)                                                   | Lets you move multiple assets or folders to trash at once with performance benefits under version control.                                                                                                                                                                                                                                                                                                                        |
| [MoveAssetToTrash](/engine/6000.7/script-reference/unityeditor/assetdatabase/moveassettotrash.md)                                                     | Moves the specified asset  or folder to the OS trash.                                                                                                                                                                                                                                                                                                                                                                             |
| [OpenAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/openasset.md)                                                                   | Opens the asset with associated application.                                                                                                                                                                                                                                                                                                                                                                                      |
| [Refresh](/engine/6000.7/script-reference/unityeditor/assetdatabase/refresh.md)                                                                       | Import any changed assets.                                                                                                                                                                                                                                                                                                                                                                                                        |
| [RefreshSettings](/engine/6000.7/script-reference/unityeditor/assetdatabase/refreshsettings.md)                                                       | Apply pending Editor Settings changes to the Asset pipeline.                                                                                                                                                                                                                                                                                                                                                                      |
| [RegisterCustomDependency](/engine/6000.7/script-reference/unityeditor/assetdatabase/registercustomdependency.md)                                     | Allows you to register a custom dependency that Assets can be dependent on. If you register a custom dependency, and specify that an Asset is dependent on it, then the Asset will get re-imported if the custom dependency changes.                                                                                                                                                                                              |
| [ReleaseCachedFileHandles](/engine/6000.7/script-reference/unityeditor/assetdatabase/releasecachedfilehandles.md)                                     | Calling this function will release file handles internally cached by Unity. This allows modifying asset or meta files safely thus avoiding potential file sharing IO errors.                                                                                                                                                                                                                                                      |
| [RemoveAssetBundleName](/engine/6000.7/script-reference/unityeditor/assetdatabase/removeassetbundlename.md)                                           | Remove the AssetBundle name from the Asset Database.                                                                                                                                                                                                                                                                                                                                                                              |
| [RemoveObjectFromAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/removeobjectfromasset.md)                                           | Removes object from its asset (Additional Resources: [AssetDatabase.AddObjectToAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/addobjecttoasset.md)).                                                                                                                                                                                                                                                            |
| [RemoveScriptableObjectsWithMissingScript](/engine/6000.7/script-reference/unityeditor/assetdatabase/removescriptableobjectswithmissingscript.md)     | Removes any ScriptableObject instances from the given asset file which cannot be loaded because their scripts could not be found.                                                                                                                                                                                                                                                                                                 |
| [RemoveUnusedAssetBundleNames](/engine/6000.7/script-reference/unityeditor/assetdatabase/removeunusedassetbundlenames.md)                             | Remove all the unused AssetBundle names in the Asset Database.                                                                                                                                                                                                                                                                                                                                                                    |
| [RenameAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/renameasset.md)                                                               | Rename an asset file.                                                                                                                                                                                                                                                                                                                                                                                                             |
| [ResetCacheServerReconnectTimer](/engine/6000.7/script-reference/unityeditor/assetdatabase/resetcacheserverreconnecttimer.md)                         | Resets the internal cache server connection reconnect timer values. The default delay timer value is 1 second, and the max delay value is 5 minutes. Everytime a connection attempt fails it will double the delay timer value, until a maximum time of the max value.                                                                                                                                                            |
| [SaveAssetIfDirty](/engine/6000.7/script-reference/unityeditor/assetdatabase/saveassetifdirty.md)                                                     | Writes all unsaved changes to the specified asset to disk.                                                                                                                                                                                                                                                                                                                                                                        |
| [SaveAssets](/engine/6000.7/script-reference/unityeditor/assetdatabase/saveassets.md)                                                                 | Writes all unsaved asset changes to disk.                                                                                                                                                                                                                                                                                                                                                                                         |
| [SetImporterOverride](/engine/6000.7/script-reference/unityeditor/assetdatabase/setimporteroverride.md)                                               | Sets a specific importer to use for the asset.                                                                                                                                                                                                                                                                                                                                                                                    |
| [SetLabels](/engine/6000.7/script-reference/unityeditor/assetdatabase/setlabels.md)                                                                   | Replaces the list of labels on an asset.                                                                                                                                                                                                                                                                                                                                                                                          |
| [SetMainObject](/engine/6000.7/script-reference/unityeditor/assetdatabase/setmainobject.md)                                                           | Specifies which object in the asset file should become the main object after the next import.                                                                                                                                                                                                                                                                                                                                     |
| [StartAssetEditing](/engine/6000.7/script-reference/unityeditor/assetdatabase/startassetediting.md)                                                   | Pauses automatic asset import, allowing you to group several asset imports together into one larger import.                                                                                                                                                                                                                                                                                                                       |
| [StopAssetEditing](/engine/6000.7/script-reference/unityeditor/assetdatabase/stopassetediting.md)                                                     | Ends the Asset Database's temporary paused state, allowing it to resume normal automatic imports.                                                                                                                                                                                                                                                                                                                                 |
| [TryGetAssetFolderInfo](/engine/6000.7/script-reference/unityeditor/assetdatabase/trygetassetfolderinfo.md)                                           | Get AssetDatabase specific information about a folder.                                                                                                                                                                                                                                                                                                                                                                            |
| [TryGetGUIDAndLocalFileIdentifier](/engine/6000.7/script-reference/unityeditor/assetdatabase/trygetguidandlocalfileidentifier.md)                     | Get the GUID and local file id from an object instance id.                                                                                                                                                                                                                                                                                                                                                                        |
| [UnregisterCustomDependencyPrefixFilter](/engine/6000.7/script-reference/unityeditor/assetdatabase/unregistercustomdependencyprefixfilter.md)         | Removes custom dependencies that match the prefixFilter.                                                                                                                                                                                                                                                                                                                                                                          |
| [ValidateMoveAsset](/engine/6000.7/script-reference/unityeditor/assetdatabase/validatemoveasset.md)                                                   | Checks if an asset file can be moved from one folder to another. (Without actually moving the file).                                                                                                                                                                                                                                                                                                                              |
| [WriteImportSettingsIfDirty](/engine/6000.7/script-reference/unityeditor/assetdatabase/writeimportsettingsifdirty.md)                                 | Writes the import settings to disk.                                                                                                                                                                                                                                                                                                                                                                                               |

## Static Events

| Member                                                                                                                    | Description                                                         |
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [cacheServerConnectionChanged](/engine/6000.7/script-reference/unityeditor/assetdatabase/cacheserverconnectionchanged.md) | Unity raises this event when Cache Server connection is changed.    |
| [importPackageCancelled](/engine/6000.7/script-reference/unityeditor/assetdatabase/importpackagecancelled.md)             | Callback raised whenever a package import is cancelled by the user. |
| [importPackageCompleted](/engine/6000.7/script-reference/unityeditor/assetdatabase/importpackagecompleted.md)             | Callback raised whenever a package import successfully completes.   |
| [importPackageFailed](/engine/6000.7/script-reference/unityeditor/assetdatabase/importpackagefailed.md)                   | Callback raised whenever a package import failed.                   |
| [importPackageStarted](/engine/6000.7/script-reference/unityeditor/assetdatabase/importpackagestarted.md)                 | Callback raised whenever a package import starts.                   |

## Classes

| Class                                                                                                             | Description                                                                                                                                                     |
| ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AssetDatabase.AssetEditingScope](/engine/6000.7/script-reference/unityeditor/assetdatabase/asseteditingscope.md) | Places the Asset Database into a state that temporarily prevents automatic import, allowing you to group several asset imports together into one larger import. |

## Enums

| Enum                                                                                                              | Description                                                                                                                                                |
| ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AssetDatabase.RefreshImportMode](/engine/6000.7/script-reference/unityeditor/assetdatabase/refreshimportmode.md) | Options that control whether the Editor imports assets in the Editor process, or in parallel in import worker processes, during an Asset Database refresh. |

## Delegates

| Delegate                                                                                                                              | Description                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| [AssetDatabase.ImportPackageCallback](/engine/6000.7/script-reference/unityeditor/assetdatabase/importpackagecallback.md)             | Delegate to be called from [AssetDatabase.ImportPackage](/engine/6000.7/script-reference/unityeditor/assetdatabase/importpackage.md) callbacks. |
| [AssetDatabase.ImportPackageFailedCallback](/engine/6000.7/script-reference/unityeditor/assetdatabase/importpackagefailedcallback.md) | Delegate to be called from [AssetDatabase.ImportPackage](/engine/6000.7/script-reference/unityeditor/assetdatabase/importpackage.md) callbacks. |
