Search Unity

Question Update for newer Unity versions

Discussion in 'Assets and Asset Store' started by DevDunk, Mar 22, 2023.

  1. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,043
    I have an asset which is made in 2020LTS, but I want to use some 2021LTS features with a new update.
    I got everything set up in 2021LTS, so I will make a new release for that version.

    I wonder what happens if someone downloads my asset in 2020LTS. Do they get the older 2020LTS version (which is what I want), or will they get the newer version?


    Edit:
    Another question: Does unity only use the main release (2021.3) or the minor releases as well? (2021.3.21)?
    If the latter, I will use 2021.3.0
     
    Last edited: Mar 22, 2023
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,882
    They all get the same version. You upload one package and that's the package everyone downloads. It's your job to make sure it works across Unity editor versions.

    You have to make sure within the package that scripts detect the Unity version and take a different code path. For assets not much you can do other than perhaps editor scripting that does apply changes depending on Unity version.

    Don't know what you mean by the last question. Unity users are free to (continue to) use any previously published Unity version. But as asset dev I would focus only on the LTS versions and the latest available tech stream to make sure it works well with the latest version.
     
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,043
    Oh, that sucks.
    I have a system which works in 2020, and breaks in 2021 and newer. The fix I made works in 2021, but breaks in 2020.

    I thought that's why you can see multiple uploads on assets (like https://assetstore.unity.com/packag...environment-dynamic-nature-150668#description)

    With my asset it still shows the first upload from 2020, with my update being in 2021.

    It's submitted either way, worst case I'll make a seperate 2020 unity package
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,882
    If you say system, you mean scripts breaking? If so you can always work around minor API differences but more cumbersome to maintain if it's using a completely new tech going from 2020 to 2021.
     
  5. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,043