# 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);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tebex.io/developers/unity-engine/examples/access-package-images-as-texture2d.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
