文档

Unity Engine

Unity Engine

CleanBuildCache()

Clears cached unified content-build data so the next build recomputes it.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void CleanBuildCache()

Remarks

BuildPipeline.BuildContentDirectory performs the same cleanup when BuildContentOptions.CleanBuildCache is set. Use this to clear that cache between builds without running a content build.