BakeAsync()
Starts an asynchronous bake job.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static bool BakeAsync()
Returns
Type | Description |
|---|---|
| bool | Returns true if the bake was successfully started. Will return false and print a warning message if it's not possible to start the bake. |
Remarks
The progress can be monitored via Lightmapping.isRunning property. Lightmapping.bakeStarted will be called when the bake starts, and Lightmapping.bakeCompleted when it is done.
Only works in Lightmapping.GIWorkflowMode.OnDemand mode.
For synchronous bakes see Lightmapping.Bake.