Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

How to avoid phantom changes in git?

Discussion in 'Scripting' started by dimmduh1, Dec 21, 2021.

  1. dimmduh1

    dimmduh1

    Joined:
    Feb 5, 2021
    Posts:
    24
    It makes me mad every day.
    SerializedFormat

    upload_2021-12-21_19-32-57.png
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,936
    This smells like you have downgraded Unity and are opening assets serialized with a higher version.

    Normally when you upgrade Unity the process is not reversible, and you will often see this happen ONCE when you upgrade each file, moving a SerializedFormat field UP, not down the way you have shown above.
     
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,623
    _geo__ and dimmduh1 like this.
  4. dimmduh1

    dimmduh1

    Joined:
    Feb 5, 2021
    Posts:
    24
    I did not update unity version.
    All team members use exact same unity version
     
  5. dimmduh1

    dimmduh1

    Joined:
    Feb 5, 2021
    Posts:
    24
    Thx.
    I need
    1. find all assets in project
    2. upload all assets to memory (by chunks I guess even with 64 gb ram)
    3. call AssetDatabase.ForceReserializeAssets
    Am I correct?
     
  6. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,623
    You only need to call
    AssetDatabase.ForceReserializeAssets
    .

    PS: Don't forget to backup your project, because this operation can't be undone.