Bake()
Starts a synchronous bake job.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static bool Bake()
Returns
Type | Description |
|---|---|
| bool | Returns true if the bake ran successfully. Will return false and print a warning message if it's not possible to start the bake. |
Remarks
Returns when the lightmapping has finished. Lightmapping.bakeStarted will be called when the bake starts, and Lightmapping.bakeCompleted when it is done.
Only works in Lightmapping.GIWorkflowMode.OnDemand mode.
For asynchronous bakes see Lightmapping.BakeAsync.