Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#

BuildAssetBundlesParameters.subtarget

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

public int subtarget;

Description

The subtarget to build. (optional)

For certain platforms, setting a non-zero value for this property can modify the build behaviour.

Both this property and BuildAssetBundlesParameters.targetPlatform should remain unset to automatically use the target and subtarget as defined in the current Build Profile.

The valid values for this property correspond to target-specific enums, which are cast to ints. Examples of these enums include StandaloneBuildSubtarget, MobileTextureSubtarget and WebGLTextureSubtarget.

Usage examples:

Additional resources: BuildPlayerOptions.subtarget, EditorUserBuildSettings.standaloneBuildSubtarget, EditorUserBuildSettings.androidBuildSubtarget, EditorUserBuildSettings.webGLBuildSubtarget.