Beispiel #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);
        }
        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));
            }
        }
Beispiel #3
0
 public override AssetInfo GetAssetInfo(IAssetEnumerator ctx, UnityEngine.U2D.SpriteAtlas atlas)
 {
     return(new AssetInfo(atlas, atlas.name));
 }
Beispiel #4
0
 public override AssetInfo GetAssetInfo(IAssetEnumerator ctx, UnityEngine.Video.VideoClip clip)
 {
     return(new AssetInfo(clip, clip.name));
 }
Beispiel #5
0
 public override AssetInfo GetAssetInfo(IAssetEnumerator ctx, UnityEngine.Sprite sprite)
 {
     return(new AssetInfo(sprite, sprite.name, ctx.GetAssetInfo(GetSpriteTexture(sprite))));
 }
Beispiel #6
0
 public virtual AssetInfo GetAssetInfo(IAssetEnumerator ctx, T obj)
 {
     return(new AssetInfo(obj, obj.name));
 }
Beispiel #7
0
 public AssetInfo GetAssetInfo(IAssetEnumerator ctx, UnityEngine.Object obj)
 {
     return(GetAssetInfo(ctx, obj as T));
 }