Created
April 25, 2017 19:58
-
-
Save kilj/16136ca8d008a670f58ca9655d3fc8fc to your computer and use it in GitHub Desktop.
Unity Build Cloud: tiny script for showing buildNumber, targetName, etc on phone screen (for example).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
[Serializable] | |
public class UnityCloudBuildManifest | |
{ | |
public string scmCommitId; | |
public string scmBranch; | |
public string buildNumber; | |
public string buildStartTime; | |
public string projectId; | |
public string bundleId; | |
public string unityVersion; | |
public string xcodeVersion; | |
public string cloudBuildTargetName; | |
public static UnityCloudBuildManifest Load() | |
{ | |
var manifest = (TextAsset)Resources.Load("UnityCloudBuildManifest.json"); | |
return manifest == null ? null : JsonUtility.FromJson<UnityCloudBuildManifest>(manifest.text); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment