AssetDatabase.FindAsset returns seemingly random string

Hey. I’m trying to find an Asset using AssetDatabase.FindAsset but it only returns strange strings like:

It always returns the same string for the same asset. It also doesn’t change when I restart Unity so it must be some string associated with that asset.
When I look for an asset which doesn’t exist it returns an empty array so it’s not returning nonexisting file. I also tried this script in a new empty project just to make sure it wasn’t me changing something I wasn’t supposed to.

The code I’m using:

[MenuItem("Test/findAsset")]
public static void TestFindAsset(){
    string[] search = new string[]{"AssetName"};
    foreach(string s in search){
         string[] assets = AssetDatabase.FindAssets(s);
         string str = s + ": \n";
         foreach(string o in assets){
            str += o + "\n";
        }
        Debug.Log (str);
    }
}

I also tried to google it but couldn’t find anything.

Google didn’t find the documentation? It says the function returns a GUID:

Returns: a list of asset GUIDs. Use AssetDatabase.GUIDToAssetPath to get asset paths.

Wops must have missed that in the documentation. :smile:

Thx