The object picker finds them all, why can't FindObjectsOfTypeIncludingAssets?

The object picker in the inspector lists all object of a specific type, in this case my custom glyph data assets. But Object.FindObjectsOfTypeIncludingAssets will not (I think it will only find those that are loaded already).

I have all these in the folder:

1247903--53815--$Screen Shot 2013-05-17 at 18.01.18.png

But FindObjectsOfTypeIncludingAssets only finds 5 of them.

1247903--53814--$Screen Shot 2013-05-17 at 18.00.35.png

But the object picker lists them all.

1247903--53816--$Screen Shot 2013-05-17 at 18.02.02.png

Even after closing the object picker, FindObjectsOfTypeIncludingAssets still only finds the same 5, so they weren’t loaded by the object picker - or if they were they were destroyed afterwards.

How did they all get found and listed by the object picker? Why can’t FindObjectsOfTypeIncludingAssets work the same? Or why can’t be have a new method which finds them all like the object picker does?

Can anyone offer anything here?

I’ll just add that this issue occurs with built-in asset types too, well at least Materials anyway. Very frustrating.

A workaround is to make sure you load all assets of a type beforehand using AssetDatabase.LoadAssetAtPath, but this means you have to find all paths for a certain type.

This could certainly be less painful.