Trying to programmatically load the built-in resource “Background” that is used on the image component of UI (4.6) element Scrollbar.
I’ve tried:
Resources.GetBuiltinResource(typeof(Sprite), "Background") as Sprite;
Resources.GetBuiltinResource(typeof(Sprite), "Background.psd") as Sprite;
But both return null. Don’t know how to proceed.
you can use this:
Sprite sprite = AssetDatabase.GetBuiltinExtraResource<Sprite>("UI/Skin/Background.psd");
I tried it at Unity 5.2.2f1