internal UI_Background(UIConfig.cBackground backgroundSettings) { config = backgroundSettings; image = UIUtils.LoadImage(config, "Background"); solidTexture = UIUtils.CreateColorTexture(config.SolidColor); solidTexture.hideFlags = HideFlags.HideAndDontSave; solidTexture.DontDestroyOnLoad(); AllElements.Add(this); }
internal UI_Background(UIConfig.cBackground backgroundSettings) { config = backgroundSettings; solidTexture = UIUtils.CreateColorTexture(config.SolidColor); image = UIStyleValues.LoadImage(config, "Background"); }