> For the complete documentation index, see [llms.txt](https://docs.tebex.io/developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tebex.io/developers/unity-engine/examples/access-package-images-as-texture2d.md).

# Access package images as Texture2D

```csharp
using Tebex.TebexUnity;
using Tebex.Headless;

// After StoreBrowser has initialized, the static Tebex class holds all data.
foreach (Category cat in Tebex.Categories)
{
    Debug.Log($"Category: {cat.name}");
    foreach (Package pkg in cat.packages)
    {
        Debug.Log($"  {pkg.name} — {pkg.currency}{pkg.total_price}");
    }
}

// Get a package image (fetched and cached automatically):
Texture2D icon = Tebex.GetTexture(myPackage);
```
