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

BuildPlayerOptions.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.

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

Both this property and BuildPlayerOptions.target 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, WebGLTextureSubtarget and XboxBuildSubtarget.

Usage examples:

Additional resources: BuildAssetBundlesParameters.subtarget, EditorUserBuildSettings.standaloneBuildSubtarget, EditorUserBuildSettings.androidBuildSubtarget, EditorUserBuildSettings.webGLBuildSubtarget, EditorUserBuildSettings.ps4BuildSubtarget.