# SetUseDefaultGraphicsAPIs(BuildTarget, bool)

> Should a build platform use automatic graphics API choice.

## Definition

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

```csharp
public static void SetUseDefaultGraphicsAPIs(BuildTarget platform, bool automatic)
```

### Parameters

**** (\[BuildTarget]\(/engine/6000.3/script-reference/unityeditor/buildtarget)): Platform to set the flag for.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Should best available graphics API be used?

### Remarks

By default each platform is using "automatic" graphics API detection and picks the best available one. However it is possible to change that to explicitly limit the graphics APIs used, see [PlayerSettings.SetGraphicsAPIs](/engine/6000.3/script-reference/unityeditor/playersettings/setgraphicsapis.md).

Additional Resources: [PlayerSettings.GetUseDefaultGraphicsAPIs](/engine/6000.3/script-reference/unityeditor/playersettings/getusedefaultgraphicsapis.md), [PlayerSettings.GetGraphicsAPIs](/engine/6000.3/script-reference/unityeditor/playersettings/getgraphicsapis.md), [PlayerSettings.SetGraphicsAPIs](/engine/6000.3/script-reference/unityeditor/playersettings/setgraphicsapis.md).
