public static void Init()
 {
     Texture[] textures = Watermarks.GetTextures(true);
     string[]  names    = Watermarks.GetNames();
     WatermarkSelector.watermarkThumbs = new GUIContent[textures.Length];
     for (int i = 0; i < textures.Length; i++)
     {
         WatermarkSelector.watermarkThumbs[i] = new GUIContent(textures[i], names[i]);
     }
     WatermarkSelector.gridWidth  = 326f;
     WatermarkSelector.gridHeight = (float)(textures.Length / 4) * WatermarkSelector.gridWidth / 4f;
 }
Пример #2
0
 public static Texture[] GetWatermarkTextures(bool showProgress = true)
 {
     return(Watermarks.GetTextures(showProgress));
 }