Class BuildUtility
Utility class for the Addressables Build Content process.
Inherited Members
Namespace: UnityEditor.AddressableAssets.Build
Syntax
public class BuildUtility
Methods
CheckModifiedScenesAndAskToSave()
Used during the build to check for unsaved scenes and provide a user popup if there are any.
Declaration
public static bool CheckModifiedScenesAndAskToSave()
Returns
Type | Description |
---|---|
Boolean | True if there were no unsaved scenes, or if user hits "Save and Continue" on popup. False if any scenes were unsaved, and user hits "Cancel" on popup. |
GetNameWithHashNaming(BundledAssetGroupSchema.BundleNamingStyle, String, String)
Creates a new bundle name using its hash and a given naming style.
Declaration
public static string GetNameWithHashNaming(BundledAssetGroupSchema.BundleNamingStyle schemaBundleNaming, string hash, string sourceBundleName)
Parameters
Type | Name | Description |
---|---|---|
BundledAssetGroupSchema.BundleNamingStyle | schemaBundleNaming | The bundle naming style. |
String | hash | The bundle hash. |
String | sourceBundleName | The original bundle name. |
Returns
Type | Description |
---|---|
String | Returns the new bundle name. |
IsEditorAssembly(Assembly)
Determines if the given assembly is an editor assembly.
Declaration
public static bool IsEditorAssembly(Assembly assembly)
Parameters
Type | Name | Description |
---|---|---|
Assembly | assembly | The assembly. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the assembly is an editor assembly. Returns false otherwise. |