Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.
Unity's version control component has been upgraded to Plastic SCM.

[Solved] Collab: feature simple adding number to project version

Discussion in 'Unity Collaborate' started by RARgames, Oct 31, 2017.

  1. RARgames

    RARgames

    Joined:
    Aug 25, 2017
    Posts:
    39
    Is there any way to add a collab update number to playerSettings/other settings/version?
    I mean I will set up version to x.x. and after second dot (unity plugin?) will add collab update number when building.

    If anyone know similar method to automatically update version, please let me know. :)
     
  2. Ryan-Unity

    Ryan-Unity

    Joined:
    Mar 23, 2016
    Posts:
    1,993
    Hi @RARgames! While Collaborate does not have this information on its own, used with Cloud Build it is possible to get this value. You'd need to enable both Collaborate and Cloud Build to use this option. Cloud Build injects a manifest file into your build so that you can access certain values at runtime. You can read more about them here: (https://docs.unity3d.com/Manual/UnityCloudBuildManifest.html). Try checking the `scmCommitId` and `buildNumber` values for getting the Collab update number.
     
  3. RARgames

    RARgames

    Joined:
    Aug 25, 2017
    Posts:
    39
    Thanks for fast reply.

    I found everything I need about getting collab update number and it works. It would be better for me to just get the collab number without the use of cloud build, but I guess it's not possible right now.
     
    Last edited: Nov 2, 2017