Version: Unity 6.3 LTS (6000.3)
LanguageEnglish
  • C#

PlayerSettings.SetArchitecture

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

Switch to Manual

Declaration

public static void SetArchitecture(Build.NamedBuildTarget buildTarget, int architecture);
Obsolete Use SetArchitecture(NamedBuildTarget buildTarget, int architecture) instead.

Declaration

public static void SetArchitecture(BuildTargetGroup targetGroup, int architecture);

Parameters

Parameter Description
buildTarget The NamedBuildTarget.
architecture The architecture as an integer.

Description

Sets the target CPU architecture for the build target.

This setting applies to iOS, tvOS, and visionOS platforms only. Other platforms use their own architecture APIs.

Architecture values:
0 — 32-bit ARMv7 (deprecated)
1 — 64-bit ARM64 (default)
2 — Universal (ARMv7 and ARM64)

BuildTargetGroup is marked for deprecation in the future. Use NamedBuildTarget instead.

Additional resources: PlayerSettings.Android.targetArchitectures (Android), EditorUserBuildSettings.SetPlatformSettings (Windows, macOS, and Linux).