

More info See in Glossary of an Asset changes, Unity triggers a reimport of that Asset. For projects, these are considered direct dependencies for packages, these are indirect, or transitive, dependencies. Projects and packages use the dependencies attribute in their manifests to define the set of packages they require. If any dependency In the context of the Package Manager, a dependency is a specific package version (expressed in the form that a project or another package requires in order to work. The Asset Database keeps track of two types of Asset dependencies: static dependencies and dynamic dependencies. It then updates the Asset Database with the GUIDs for those files, and removes the entries for the files that it detected as deleted. Once Unity gathers the file list, it then gets the file hashes for the files which have either been added or modified. It gathers any changes into a list to process in the next step. When Unity looks for changes on disk, it scans the Assets and Packages folders in your Project to check if any files have been added, modified, or deleted since the last scan. When an importer creates a file in the middle of an import (for example, FBX models can restart a Refresh by extracting their Textures from the model).If the timestamp of the file being imported changes while it is being imported, the file is queued for re-import.Any AssetDatabase API that queues an additional Refresh, such as MoveAsset, CreateAsset and ImportAsset.If, in OnPostProcessAllAssets, you call any of the following:.If, after the import, a file that the importer used has changed on disk.Unity restarts the Asset Database refresh loop under the following conditions: These steps happen inside a loop, and some steps might cause the refresh process to restart (for example, if importing an Asset creates other Assets which Unity also needs to import). This section describes this process in more detail. Unity performs the steps described in the previous section during the Asset Database refresh. The Asset Database detailed refresh process It then imports non-code-related Assets and post-processes all the remaining imported Assets.It post-processes all of the Assets for the imported code-related files.It then reloads the domain, if Refresh was not invoked from a script.It imports and compiles code-related files such as.It looks for changes to the Asset files, and then updates the source Asset Database.Unity performs the following steps during an Asset Database refresh: For example CreateAsset() and ImportAsset(). Some other AssetDatabase APIs trigger a Refresh() but only for the Assets you specify. When you call AssetDatabase.Refresh from C#.When you select Assets > Refresh from the menu.When the Unity Editor regains focus (if you have enabled Auto-Refresh in the Preferences window).Unity refreshes the Asset Database in the following situations:
