- Home /
Addressables System - Assetreference Equality
I have two gameObjects, each of which has a public variable of AssetReferenceGameObject, and they both refer to the same assetReference. When I perform an equality check on them, it returns false; when I print their values out using Debug.Log, they are displayed as having the exact same SHA-1 value. But when I perform an equality check on the RuntimeKey values of the two references, now it returns true .
So my question is, why doesn't equality check on two identical AssetReferences work but the same thing on their RuntimeKey values spits out the expected result? To me at least, it seemed intuitive that two identical references would return true upon being compared for equality. I don't think Addressables documentation talks about this--or am I just a noob? if so, can someone point me to the unity documentation on this matter?
Thank you, any help would be greatly appreciated
Your answer
![](https://koobas.hobune.stream/wayback/20220613003519im_/https://answers.unity.com/themes/thub/images/avi.jpg)