Exemplo n.º 1
0
        public override AssetInfo GetAssetInfo(IAssetEnumerator ctx, TMP_FontAsset font)
        {
            var fontAsset    = new AssetInfo(font, font.name);
            var textureAsset = ctx.GetAssetInfo(font.atlasTexture);

            textureAsset.Parent = fontAsset;

            return(fontAsset);
        }
Exemplo n.º 2
0
        public override AssetInfo GetAssetInfo(IAssetEnumerator ctx, UnityEngine.Texture2D texture)
        {
            var atlas = texture.GetAtlas();

            if (atlas != null)
            {
                return(new AssetInfo(texture, atlas.name, ctx.GetAssetInfo(atlas)));
            }
            else
            {
                return(new AssetInfo(texture, texture.name));
            }
        }
Exemplo n.º 3
0
 public override AssetInfo GetAssetInfo(IAssetEnumerator ctx, UnityEngine.Sprite sprite)
 {
     return(new AssetInfo(sprite, sprite.name, ctx.GetAssetInfo(GetSpriteTexture(sprite))));
 }