NamedBuildTarget
Identifies which platform's build settings an API applies to.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Struct
- Namespace: UnityEditor.Build
- Assembly: UnityEditor
- Implements: IEquatable<NamedBuildTarget>, IComparable<NamedBuildTarget>
public readonly struct NamedBuildTarget : IEquatable<NamedBuildTarget>, IComparable<NamedBuildTarget>
Remarks
Use BuildTarget to choose the platform output to build. Use NamedBuildTarget to choose which platform's settings to read or change.
Static Fields
Value | Description |
|---|---|
| Android | Android. |
| EmbeddedLinux | EmbeddedLinux. |
| iOS | iOS. |
| LinuxHeadlessSimulation | LinuxHeadlessSimulation. |
| NintendoSwitch | Nintendo Switch. |
| NintendoSwitch2 | Nintendo Switch 2. |
| PS4 | PS4. |
| PS5 | PS5. |
| QNX | QNX. |
| Server | Server. |
| Standalone | Desktop Standalone. |
| tvOS | TvOS. |
| Unknown | An unknown or unspecified named build target, typically used as a placeholder. |
| VisionOS | Apple visionOS. |
| WebGL | WebGL. |
| WindowsStoreApps | Windows Store Apps. |
| XboxOne | Xbox One. |
Properties
Property | Description |
|---|---|
| TargetName | Name of the build target. |
Methods
Method | Description |
|---|---|
| ToBuildTargetGroup | Returns the appropriate BuildTargetGroup that corresponds to the specified NamedBuildTarget. |
Static Methods
Method | Description |
|---|---|
| FromBuildTargetGroup | Returns the appropriate NamedBuildTarget that corresponds to the specified BuildTargetGroup. |