# GetArchitecture

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

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

## GetArchitecture(BuildTargetGroup)

BuildTargetGroup is marked for deprecation in the future. Use [NamedBuildTarget](/engine/6000.0/script-reference/unityeditor/build/namedbuildtarget.md) instead.

> **Warning:**
>
> **Deprecated.** Use GetArchitecture(NamedBuildTarget buildTarget) instead

```csharp
public static int GetArchitecture(BuildTargetGroup targetGroup)
```

### Parameters

**** (\[BuildTargetGroup]\(/engine/6000.0/script-reference/unityeditor/buildtargetgroup)):&#x20;

### Returns

| Type                                                       | Description |
| ---------------------------------------------------------- | ----------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) |             |

## GetArchitecture(NamedBuildTarget)

Gets the architecture for the given build target.

```csharp
public static int GetArchitecture(NamedBuildTarget buildTarget)
```

### Parameters

**** (\[NamedBuildTarget]\(/engine/6000.0/script-reference/unityeditor/build/namedbuildtarget)): The [NamedBuildTarget](/engine/6000.0/script-reference/unityeditor/build/namedbuildtarget.md).

### Returns

| Type                                                       | Description                                                                                                |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | An integer value associated with the architecture of the build target. 0 - None, 1 - ARM64, 2 - Universal. |
