Stay organized with collections
Save and categorize content based on your preferences.
Google.Android.AppBundle.Editor.AndroidBuildHelper
Provides helper methods for accessing or persisting build-related settings.
Summary
Public static functions
|
AddScriptingDefineSymbol(string symbol)
|
void
Adds the specified scripting define symbol for Android, but only if it isn't already defined.
|
CreateBuildPlayerOptions(string locationPathName)
|
BuildPlayerOptions
Creates a BuildPlayerOptions for the specified output file path with all other fields set to reasonable default values.
|
GetEditorBuildEnabledScenes()
|
string[]
Returns an array of enabled scenes from the "Scenes In Build" section of Unity's Build Settings window.
|
IsScriptingSymbolDefined(string symbol)
|
bool
Returns true if the specified scripting symbol is defined for Android.
|
RemoveScriptingDefineSymbol(string symbol)
|
void
Removes the specified scripting define symbol if it exists.
|
Public static functions
AddScriptingDefineSymbol
void AddScriptingDefineSymbol(
string symbol
)
Adds the specified scripting define symbol for Android, but only if it isn't already defined.
CreateBuildPlayerOptions
BuildPlayerOptions CreateBuildPlayerOptions(
string locationPathName
)
Creates a BuildPlayerOptions for the specified output file path with all other fields set to reasonable default values.
Details |
Parameters |
locationPathName
|
The output file that will be created when building a player with BuildPipeline.
|
|
Returns
|
A new BuildPlayerOptions object.
|
GetEditorBuildEnabledScenes
string[] GetEditorBuildEnabledScenes()
Returns an array of enabled scenes from the "Scenes In Build" section of Unity's Build Settings window.
IsScriptingSymbolDefined
bool IsScriptingSymbolDefined(
string symbol
)
Returns true if the specified scripting symbol is defined for Android.
RemoveScriptingDefineSymbol
void RemoveScriptingDefineSymbol(
string symbol
)
Removes the specified scripting define symbol if it exists.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-03-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-03-18 UTC."],[],[],null,["# Google.Android.AppBundle.Editor.AndroidBuildHelper Class Reference\n\nGoogle.Android.AppBundle.Editor.AndroidBuildHelper\n==================================================\n\nProvides helper methods for accessing or persisting build-related settings.\n\nSummary\n-------\n\n| ### Public static functions ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AddScriptingDefineSymbol](#classGoogle_1_1Android_1_1AppBundle_1_1Editor_1_1AndroidBuildHelper_1ad0e5874e9c3dd3ec80b241f43dd9963e)`(string symbol)` | `void` Adds the specified scripting define symbol for [Android](/reference/unity/namespace/Google/Android#namespaceGoogle_1_1Android), but only if it isn't already defined. |\n| [CreateBuildPlayerOptions](#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. |\n| [GetEditorBuildEnabledScenes](#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. |\n| [IsScriptingSymbolDefined](#classGoogle_1_1Android_1_1AppBundle_1_1Editor_1_1AndroidBuildHelper_1af6a9bad5221d38cbe30b03401c264394)`(string symbol)` | `bool` Returns true if the specified scripting symbol is defined for [Android](/reference/unity/namespace/Google/Android#namespaceGoogle_1_1Android). |\n| [RemoveScriptingDefineSymbol](#classGoogle_1_1Android_1_1AppBundle_1_1Editor_1_1AndroidBuildHelper_1a9cb7a3834e010d27d181e94789147202)`(string symbol)` | `void` Removes the specified scripting define symbol if it exists. |\n\nPublic static functions\n-----------------------\n\n### AddScriptingDefineSymbol\n\n```c#\nvoid AddScriptingDefineSymbol(\n string symbol\n)\n``` \nAdds the specified scripting define symbol for [Android](/reference/unity/namespace/Google/Android#namespaceGoogle_1_1Android), but only if it isn't already defined. \n\n### CreateBuildPlayerOptions\n\n```c#\nBuildPlayerOptions CreateBuildPlayerOptions(\n string locationPathName\n)\n``` \nCreates a BuildPlayerOptions for the specified output file path with all other fields set to reasonable default values.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |--------------------|---------------------------------------------------------------------------------| | `locationPathName` | The output file that will be created when building a player with BuildPipeline. | |\n| **Returns** | A new BuildPlayerOptions object. |\n\n### GetEditorBuildEnabledScenes\n\n```c#\nstring[] GetEditorBuildEnabledScenes()\n``` \nReturns an array of enabled scenes from the \"Scenes In Build\" section of Unity's Build Settings window. \n\n### IsScriptingSymbolDefined\n\n```c#\nbool IsScriptingSymbolDefined(\n string symbol\n)\n``` \nReturns true if the specified scripting symbol is defined for [Android](/reference/unity/namespace/Google/Android#namespaceGoogle_1_1Android). \n\n### RemoveScriptingDefineSymbol\n\n```c#\nvoid RemoveScriptingDefineSymbol(\n string symbol\n)\n``` \nRemoves the specified scripting define symbol if it exists."]]