文档

Unity Engine

Unity Engine

Bake()

Starts a synchronous bake job.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static bool Bake()

Returns

Type

Description

boolReturns 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.
For asynchronous bakes see Lightmapping.BakeAsync.