ImportAssetOptions.ForceSynchronousImport 强制同步导入
ImportAssetOptions.ForceSynchronousImport
Description描述
Import all assets synchronously.
同步导入所有资源。
By default some assets can be imported asynchronously (e.g. scripts can be compiled in the background). In some cases all importing needs to be synchronous; use this flag then. For example, when importing a scripts + prefabs, scripts have to be fully compiled before prefab is serialized, otherwise it might get old variables.
默认情况下,有些资产可以异步导入(例如,脚本可以在后台编译)。在某些情况下,所有导入需求是同步。然后使用这个,例如,当导入scripts+预置,预置被序列化之前,脚本必须完全编译。否则可能得到旧的变量。
参见:AssetDatabase.ImportAsset, AssetDatabase.Refresh.
最后修改:2011年7月18日 Monday 19:41