Search Unity

Assets [WIP] NG Unity Versioner: Instantly check your code against any Unity version!

Discussion in 'Works In Progress' started by Mikilo, Dec 18, 2019.

  1. Mikilo

    Mikilo

    Joined:
    Jan 29, 2013
    Posts:
    517
    Hi folks!

    I had an idea few days ago related to Unity API versioning.

    What if you had a tool allowing you to instantly check your code compatibility against any version of Unity?

    Sabresaurus did an awesome job providing a database to our community:
    https://sabresaurus.com/unity-api-versioner/

    But instead of just checking one API at a time, why not checking all references to Unity at once?


    I present to you my prototype NG Unity Versioner

    upload_2019-12-21_19-13-36.png



    Here is the result when you check compatibility of my code in the namespace "NGT" against 2020.1.0a16

    upload_2019-12-21_18-57-57.png


    A summary of my code compatibilities:

    upload_2019-12-21_19-36-9.png


    Steps A:
    1. Open Window > NG Unity Versioner
    2. Write your target namespace
    3. Select the versions (in Assembly Meta Versions or Unity Install Paths)
    4. Click on "Check Compatibilities"

    If you would like to check against a Unity version not available but installed locally in your computer.
    Steps B:
    1. Open Window > NG Unity Versioner
    2. Click on Installs (on the right of Unity Install Paths)
    3. Add path to a folder containing Unity installs (i.e. "C:/Program Files")
    4. Do Steps A.


    How to install:
    Via git repository:
    https://github.com/Mikilo/ng-unity-versioner

    Via Package Manager (using "Add package from git URL..." ):
    https://github.com/Mikilo/ng-unity-versioner.git


    Via manifest.json:
    {
    "dependencies": {
    "com.mikilo.ng-unity-versioner": "https://github.com/Mikilo/ng-unity-versioner.git"
    }
    }


    Any feedback is welcome!
     
    Last edited: Dec 22, 2019
  2. Mikilo

    Mikilo

    Joined:
    Jan 29, 2013
    Posts:
    517
    Replaced the files with a git repository.

    Enjoy :D
     
    manpower13 likes this.
  3. Mikilo

    Mikilo

    Joined:
    Jan 29, 2013
    Posts:
    517
    Updated with code & UI improvements.
     
  4. Mikilo

    Mikilo

    Joined:
    Jan 29, 2013
    Posts:
    517
    Updated with compatibility now checking from Unity 3.4.
     
  5. Mikilo

    Mikilo

    Joined:
    Jan 29, 2013
    Posts:
    517
    [0.3.4] - 2020-01-15
    Added
    - Context to an exception when loading a meta.
    - Meta versions of Unity 2017.4.36f1, 2018.4.15f1, 2019.3.0f5, 2020.1.0a8.
     
    SugoiDev likes this.
unityunity