I must be missing something obvious, but where is the image for the basic panels located? I'd like to be able to assign it to UI elements created at run time until I am ready to replace it with something of my own design but I can't find it anywhere.
@IK Hi, if I remember correctly this thread had info about getting those default sprites. Check out reply by @SimonDarksideJ : http://forum.unity3d.com/threads/how-to-load-builtin-ui-sprite.300893/#post-2527227
Thanks @eses ! Just what I needed. Encase anyone else comes across this, this is what I did to get it to work based off of the other thread: Code (csharp): //at the top using UnityEditor; //in a static class that I reference sprites from private const string kBackgroundSpriteResourcePath = "UI/Skin/Background.psd"; public static Sprite basicBackground = AssetDatabase.GetBuiltinExtraResource<Sprite>(kBackgroundSpriteResourcePath); //when needed elsewhere (doesn't require the namespace UnityEditor) GameObject panel = new GameObject("Grouping Panel"); Image i = panel.AddComponent<Image>(); i.sprite = GameConstants.basicBackground; i.type = Image.Type.Sliced;