Class BuildInfo
Inheritance
System.Object
BuildInfo
Namespace: sttz.Trimmer
Assembly: Trimmer.dll
Syntax
[Serializable]
public class BuildInfo
Fields
| Improve this Doc View SourcebuildGuid
Generated GUID to identify the build.
Declaration
public string buildGuid
Field Value
Type | Description |
---|---|
System.String |
buildTime
Build time as ISO 8601 date string.
Declaration
public string buildTime
Field Value
Type | Description |
---|---|
System.String |
DEFAULT_NAME
Default name of BuildInfo json files.
Declaration
public const string DEFAULT_NAME = "build.json"
Field Value
Type | Description |
---|---|
System.String |
profileGuid
GUID of the profile that was used to create the build.
Declaration
public string profileGuid
Field Value
Type | Description |
---|---|
System.String |
version
Version of the build.
Declaration
public Version version
Field Value
Type | Description |
---|---|
Version |
Properties
| Improve this Doc View SourceCurrent
Information about the current build.
Declaration
public static BuildInfo Current { get; set; }
Property Value
Type | Description |
---|---|
BuildInfo |
Methods
| Improve this Doc View SourceFromJson(String)
Create a BuildInfo instance from a JSON string.
Declaration
public static BuildInfo FromJson(string json)
Parameters
Type | Name | Description |
---|---|---|
System.String | json |
Returns
Type | Description |
---|---|
BuildInfo |
FromPath(String)
Load a BuildInfo from a given file path. The path can be a Unity build path and the build.json will be resolved automatically.
Declaration
public static BuildInfo FromPath(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Path to the build.json or a Unity build. |
Returns
Type | Description |
---|---|
BuildInfo |
ToJson(Boolean)
Convert the info to a JSON string.
Declaration
public string ToJson(bool pretty = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | pretty | Format the output for readability |
Returns
Type | Description |
---|---|
System.String |