Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. 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:
    36,713
    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,438
    _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,438
    You only need to call
    AssetDatabase.ForceReserializeAssets
    .

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