public Texture2D GetDefaultTexture(int width, int height) { if (appStore == null) { return(null); } Texture2D texture2D = TextureScale.ScaledResized(appStore, width, height, Settings.BackgroundColor, (float)Settings.FillPercentage / 100f, Settings.FilterMode, Settings.ScaleMode); if (texture2D != null) { texture2D.name = width + "x" + height; } return(texture2D); }
public Texture2D GetDefaultTexture(int width, int height) { if (appStore == null) { return(null); } var scaled = TextureScale.ScaledResized(appStore, width, height, Settings.BackgroundColor, Settings.FillPercentage / 100f, Settings.FilterMode, Settings.ScaleMode); if (scaled != null) { scaled.name = width + "x" + height; } return(scaled); }