socalvur.blogg.se

Unity cloud build for ios
Unity cloud build for ios











unity cloud build for ios

You will notice that I wrap the whole function with #if UNITY_CLOUD_BUILD because the BuildManifestObject can only access in Unity Cloud Build.

unity cloud build for ios

String buildNumber = manifest.GetValue("buildNumber", "0") ĭebug.LogWarning("Setting build number to " + buildNumber) Luckily, you can use PreExport( manifest) method to make some modification before Unity export the build.įirst, create a file in Asset > Editor > AutoIncrementVersionCodeInCloudBuild.cs and put the following code in the script public class AutoIncrementVersionCodeInCloudBuild : MonoBehaviour I think many of you already know that if you set Android version code to 0 in PlayerSettings, Unity will help to populate the version code with “build number” from the Unity Cloud Build. If you have a same nightmare, don’t worry, i have a solution for you. Did you ever have an experience where you automate the build of your games with Unity Cloud Build, but eventually you realise that you forgot to update the build number for iOS and version code for Android? Then, you have to edit the PlayerSettings and wait for the build again….













Unity cloud build for ios