- Home /
Question by
bartozwe · Feb 08, 2017 at 10:11 AM ·
assetbundleasset bundleshash
What determines the AssetBundle hash, and is it unique between different bundles?
AssetBundles have a 128-bit hash (the Hash128 value) which we can make use of with regards to caching. What I'm interested in knowing however is what exactly determines the hashes, and if there is any guarantee for hashes to be unique between different bundles.
I know that hash functions generally have a chance of colliding, but is there anything about the way in which Unity constructs the hashes that perhaps guarantees them to be unique between bundles for a single build of the bundles set up in a project? Or can I still end up with a collision between 2 distinct bundles (let's say "SceneBundleA" and "SceneBundleB")?
Comment