ドキュメント

Unity Engine

Unity Engine

BakeAsync()

Starts an asynchronous bake job.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static bool BakeAsync()

Returns

Type

Description

boolReturns 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.
If
-quit
is included in the command-line arguments, this method falls back to the synchronous Lightmapping.Bake. To quit the application after an asynchronous bake, use Lightmapping.bakeCompleted instead (for example, by calling
Application.Quit
).
For synchronous bakes see Lightmapping.Bake.