Class AddressableAssetBuildResult
Contains information about the status of the build.
Namespace: UnityEditor.AddressableAssets.Build
Syntax
public class AddressableAssetBuildResult : IDataBuilderResult
Properties
Duration
Duration of build, in seconds.
Declaration
public double Duration { get; set; }
Property Value
Type | Description |
---|---|
Double |
Implements
Error
Error that caused the build to fail.
Declaration
public string Error { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
FileRegistry
Registry of files created during the build
Declaration
public FileRegistry FileRegistry { get; set; }
Property Value
Type | Description |
---|---|
FileRegistry |
Implements
LocationCount
The number of addressable assets contained in the build.
Declaration
public int LocationCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
OutputPath
Path of runtime settings file
Declaration
public string OutputPath { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
Methods
CreateResult<TResult>(String, Int32, String)
Helper method to create the desired result of a data builder. This should always be used to create the build result with additional details added as needed. The Result.Duration should always be set at the end of the build script in the non-error scenario.
Declaration
public static TResult CreateResult<TResult>(string settingsPath, int locCount, string err = "")
where TResult : IDataBuilderResult
Parameters
Type | Name | Description |
---|---|---|
String | settingsPath | Path to the settings.json file (name may not always match that exactly) generated by this build |
Int32 | locCount | Number of locations created by this build |
String | err | Error string if there were problems with the build. Defaults to empty |
Returns
Type | Description |
---|---|
TResult |
Type Parameters
Name | Description |
---|---|
TResult | The actual build result created |