public static Texture2D CreateTexture(BaseImage bi) { Texture2D texture2D = new Texture2D(bi.imageWidth, bi.imageHeight); texture2D.SetPixels(CommonConfiguration.CreateBaseImage(texture2D.width, texture2D.height, bi.baseImageType)); texture2D.Apply(); return(texture2D); }