Exemple #1
0
 public override string GetTextureName(Texture2D texture)
 {
     if (_structure != null)
     {
         return(OraXMLMain.GetNameFromTexture(_structure, texture.name));
     }
     return(texture.name);
 }
Exemple #2
0
        private OraImageFileData(string path)
        {
            this.path = path;
            Debug.Log($"Ora import {this.path}");

            _structure = GetStructure(this.path);
            layers     = GETTextureList(this.path);

            thumbnail = FindSpriteByName(ThumbnailName);
            if (thumbnail)
            {
                layers.Remove(thumbnail);
            }

            mergedLayers = FindSpriteByName(MergeLayersName);
            if (mergedLayers)
            {
                layers.Remove(mergedLayers);
            }
        }