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