Beispiel #1
0
    protected static int HashAddTextureArray(int current, Texture[] arr, string name = "")
    {
#if UNITY_EDITOR
        for (int i = 0; i < arr.Length; ++i)
        {
            string path = AssetDatabase.GetAssetPath(arr[i]);
            string guid = AssetDatabase.AssetPathToGUID(path);
            current = MadHashCode.Add(current, guid);
        }

        return(current);
#else
        return(MadHashCode.AddArray(current, arr));
#endif
    }
Beispiel #2
0
 protected static int HashAddArray(int current, object[] arr)
 {
     return(MadHashCode.AddArray(current, arr));
 }