Bake
method in Coherence.Editor.BakeUtil
Methods
public static bool Bake()
Bake coherence data synchronously.
- Save Schema file for your project
- Generate optimized code for your project
Returns
| Type | Description |
|---|---|
| bool | True when the Schema file and the generated code was created successfully, false otherwise. |
Remarks
The end of this method will force a recompilation.
Uses System.Threading.Tasks.Task.Wait() to block the main thread until the operation completes.
Must not be called from within an UnityEditor.AssetDatabase.StartAssetEditing scope. Baking
imports generated assets via UnityEditor.AssetDatabase.ImportAsset(System.String), which can cause a
m_DisallowAutoRefresh assertion failure if the asset-editing batch counter is not at zero.
Close any open batch scope with UnityEditor.AssetDatabase.StopAssetEditing before calling this method.