Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

BuildContentDirectoryParameters

struct in UnityEditor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Provides various options to control the behavior of BuildPipeline.BuildContentDirectory.

using UnityEditor;
using UnityEngine;

namespace BuildDocExamples { public class BuildPipeline_BuildContentDirectoryExample { [MenuItem("BuildDocExamples/Build/Build Content Directory")] public static void BuildContentDirectoryExample() { var parameters = new BuildContentDirectoryParameters { outputPath = "Builds/MyContentDirectory", rootAssetPaths = new[] { "Assets/MyRootAsset.asset" }, options = BuildContentOptions.None };

BuildPipeline.BuildContentDirectory(parameters); } } }

Properties

Property Description
compression The compression settings for the build. Defaults to BuildCompression.Uncompressed.
extraScriptingDefines User-specified preprocessor defines used while compiling assemblies during the build. (optional)
name Optional name for the build.
options Flags from the BuildContentOptions enum. (optional)
outputPath The output path for the content directory build.
rootAssetPaths Array of paths to the root Assets that should be included in the build.