Sync()
Synchronizes the views so they have access to the same content.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.Search
- Assembly: UnityEditor
void Sync()
Remarks
This flushes the internal filestream of the view, so the data is written on disk and available to the other views. When PropertyDatabase.GetView is called with delayedSync set to true, the view is only synced when disposed. Otherwise the view is synced each time a store or invalidate happens. This allows you to sync the view whenever you need before disposing it.