기술 자료

Unity Engine

Unity Engine

compression

The compression settings for the build. Defaults to BuildCompression.Uncompressed.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public BuildCompression compression { readonly get; set; }

Remarks

With the default BuildCompression.Uncompressed, the build writes the content as individual loose files without an archive wrapper. Set BuildContentOptions.UseArchive to wrap the output in archive (.archive) files instead. Any other compression setting always produces archive files.
ContentLoadManager.RegisterContentDirectory can load a content directory whether its content is stored as loose files or wrapped in archive files. You can also create archive files from loose-file output as a separate step after the build with ContentBuildInterface.ArchiveAndCompress.
Additional Resources: BuildContentOptions.UseArchive