# Google.Android.AppBundle.Editor.AndroidBuildHelper

Provides helper methods for accessing or persisting build-related settings.

## Summary

| ### Public static functions ||
|---|---|
| `https://developer.android.com/reference/unity/class/Google/Android/AppBundle/Editor/AndroidBuildHelper#classGoogle_1_1Android_1_1AppBundle_1_1Editor_1_1AndroidBuildHelper_1ad0e5874e9c3dd3ec80b241f43dd9963e(string symbol)` | `void` Adds the specified scripting define symbol for [Android](https://developer.android.com/reference/unity/namespace/Google/Android#namespaceGoogle_1_1Android), but only if it isn't already defined. |
| `https://developer.android.com/reference/unity/class/Google/Android/AppBundle/Editor/AndroidBuildHelper#classGoogle_1_1Android_1_1AppBundle_1_1Editor_1_1AndroidBuildHelper_1acc2a6d75454e6f08311c643347cb9dc7(string locationPathName)` | `BuildPlayerOptions` Creates a BuildPlayerOptions for the specified output file path with all other fields set to reasonable default values. |
| `https://developer.android.com/reference/unity/class/Google/Android/AppBundle/Editor/AndroidBuildHelper#classGoogle_1_1Android_1_1AppBundle_1_1Editor_1_1AndroidBuildHelper_1a8ebb24cbc3d8c4c68c75a6cc1e5e325b()` | `string[]` Returns an array of enabled scenes from the "Scenes In Build" section of Unity's Build Settings window. |
| `https://developer.android.com/reference/unity/class/Google/Android/AppBundle/Editor/AndroidBuildHelper#classGoogle_1_1Android_1_1AppBundle_1_1Editor_1_1AndroidBuildHelper_1af6a9bad5221d38cbe30b03401c264394(string symbol)` | `bool` Returns true if the specified scripting symbol is defined for [Android](https://developer.android.com/reference/unity/namespace/Google/Android#namespaceGoogle_1_1Android). |
| `https://developer.android.com/reference/unity/class/Google/Android/AppBundle/Editor/AndroidBuildHelper#classGoogle_1_1Android_1_1AppBundle_1_1Editor_1_1AndroidBuildHelper_1a9cb7a3834e010d27d181e94789147202(string symbol)` | `void` Removes the specified scripting define symbol if it exists. |

## Public static functions

### AddScriptingDefineSymbol

```c#
void AddScriptingDefineSymbol(
  string symbol
)
```
Adds the specified scripting define symbol for [Android](https://developer.android.com/reference/unity/namespace/Google/Android#namespaceGoogle_1_1Android), but only if it isn't already defined.

### CreateBuildPlayerOptions

```c#
BuildPlayerOptions CreateBuildPlayerOptions(
  string locationPathName
)
```
Creates a BuildPlayerOptions for the specified output file path with all other fields set to reasonable default values.

<br />

Details Parameters `locationPathName` The output file that will be created when building a player with BuildPipeline. **Returns** A new BuildPlayerOptions object.

### GetEditorBuildEnabledScenes

```c#
string[] GetEditorBuildEnabledScenes()
```
Returns an array of enabled scenes from the "Scenes In Build" section of Unity's Build Settings window.

### IsScriptingSymbolDefined

```c#
bool IsScriptingSymbolDefined(
  string symbol
)
```
Returns true if the specified scripting symbol is defined for [Android](https://developer.android.com/reference/unity/namespace/Google/Android#namespaceGoogle_1_1Android).

### RemoveScriptingDefineSymbol

```c#
void RemoveScriptingDefineSymbol(
  string symbol
)
```
Removes the specified scripting define symbol if it exists.