static class in AdvancedSceneManager.Editor.Utility
Provides functions for building, and build events.
Remarks: Only available in editor.
| Member | Description |
|---|---|
event Action<BuildUtility.PostBuildEventArgs> postBuild |
Occurs after build. |
event Action<BuildReport> preBuild |
Occurs before build. |
| Member | Description |
|---|---|
void CleanupASMBuildAssets() |
_No documentation available._ |
BuildReport DoBuild(string path, bool attachProfiler, bool runGameWhenBuilt, bool dev, BuildOptions customOptions) |
Performs a build of the active build profile if one exists, otherwise falls back to Unity's legacy build pipeline. |
BuildReport DoBuild(BuildPlayerOptions opts) |
Performs a build using the legacy UnityEditor.BuildPlayerOptions API. |
BuildReport DoBuild(BuildPlayerWithProfileOptions options) |
Builds a player from a specific build profile. |
IEnumerable<(EditorBuildSettingsScene, BuildUtility.Reason)> GetOrderedList() |
Gets an ordered list of all scenes that ASM would set in the build settings. |
bool IsEnabled(string path, out BuildUtility.Reason reason) |
Checks if the scene at path is considered enabled for build. |
bool IsIncluded(Scene scene, out BuildUtility.Reason reason) |
Checks if a scene is valid and included in the ASM profile. |
void PrepareASMForBuild() |
_No documentation available._ |
void UpdateSceneList() |
Updates the scene build settings. |
void UpdateSceneList(bool ignorePlayModeCheck, bool force) |
Updates the scene build settings from the ASM profile. |