Ejemplo n.º 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
    }
Ejemplo n.º 2
0
 protected static int HashAddArray(int current, object[] arr)
 {
     return(MadHashCode.AddArray(current, arr));
 }