Skip to content

Instantly share code, notes, and snippets.

@colinsenner
colinsenner / AutoIncrementVersion.cs
Created November 10, 2020 00:21
Unity Cloud Build AutoIncrement
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
// https://bigcheeseapp.com/2019/04/25/automatically-set-ios-build-number-and-android-version-code-in-unity-cloud-build/
public class AutoIncrementVersion
{
#if UNITY_CLOUD_BUILD
public static void PreExport(UnityEngine.CloudBuild.BuildManifestObject manifest)
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using System.IO;
using System;
using System.Text.RegularExpressions;
using System.Linq;
// Original code by PlayItSafe_Fries