コード例 #1
0
 void OnEnable()
 {
     filePath   = "";
     working    = false;
     committing = false;
     texture    = null;
     ti         = null;
     EditorUtility.ClearProgressBar();
     colorPickerMode = COLOR_PICKER_MODE.NONE;
 }
コード例 #2
0
 void ReadTexture()
 {
     if (filePath.Length > 0)
     {
         CustomWWW www = new CustomWWW("file:///" + filePath);
         if (texture == null)
         {
             texture = new Texture2D(1, 1);
         }
         www.LoadImageIntoTexture(texture);
         ti            = new WMSK_TextureImporter(texture, bgColor, (int)detail);
         goodColorsTex = null;
     }
 }