kkdevs / Patchwork

mod
13 stars 1 forks source link

Scripts unable to load some types (incl UnityEngine types) #38

Open enkephalin07 opened 5 years ago

enkephalin07 commented 5 years ago

Scripts can load Fonts from Builtin and can detect loaded Fonts, but Resources.Load("", typeof(Font)) returns empty. So does LoadAll(), and specifying typeof(UnityEngine.Font). When it is loaded, FindObjectsofType will list it, so I can verify that it's available and correctly names. I can also locate it with Asset Studio.

Resources.LoadAll("") shows a list of all loadable resources, but a number of items are blank. There's more empty strings than there are Fonts, so I assume other types are skipped, too.