UseCachedIfPossible
This option sets the status query to first use the latest valid version control system status of the file and query for a valid status synchronously if otherwise.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Field
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
UseCachedIfPossible = 1
Remarks
A synchronous query does not return a value until the VCS system responds. This can cause significant delays especially when the VCS is server controlled. It is better to use StatusQueryOptions.UseCachedAsync for an asynchronous query in that situation.
Additional Resources: AssetDatabase.IsOpenForEdit, AssetDatabase.IsMetaFileOpenForEdit.