Search Unity

Bug GetAssetDependencyHash can't detect change on ScriptableObject

Discussion in 'Asset Bundles' started by Bluedoom, Feb 25, 2022.

  1. Bluedoom

    Bluedoom

    Joined:
    Aug 31, 2020
    Posts:
    14
    Unity version : 2020.3.30f1c1 and 2019.4.31f1

    how to reproduce
    1.Prepare a ScriptableObject (test.asset)
    2.Get test.asset Dependency Hash
    3.Add a new serialize field on the class

    4.Get test.asset Dependency Hash
    step2 and step4 hashes are same.

    If I change the class's base class to MonoBehaviour, and use prefab to serialize data. Reproduce these steps, I can get diffirent hashes.So I think it's a bug.

    I'm trying to implement an incremental asset build pipeline. I get runtime error which ask me to rebuild assetbundle of some ScriptableObjects recently.
     
  2. Bluedoom

    Bluedoom

    Joined:
    Aug 31, 2020
    Posts:
    14
    Help~
     
    Prodigga likes this.
  3. Prodigga

    Prodigga

    Joined:
    Apr 13, 2011
    Posts:
    1,123
    Submit a bug report even if you aren't sure it's a bug or not - it is the only reliable way to get feedback/support from the Devs.
     
    Bluedoom likes this.