> ## Documentation Index
> Fetch the complete documentation index at: https://luau.limerence.biz/llms.txt
> Use this file to discover all available pages before exploring further.

# getAssets

> api.utility.getAssets: all assets of a type, or every category.

```luau theme={null}
api.utility.getAssets(assetType: string?): { [string]: any }
```

All assets of a type. Pass nothing to get every category.

<ParamField path="assetType" type="string?">
  Category filter, e.g. `"image"`. Omit for everything.
</ParamField>

<ResponseField name="returns" type="table">
  Name → resolved asset.
</ResponseField>

```luau theme={null}
local images = api.utility.getAssets("image")
for name, asset in images do
    print(name, asset)
end
```

## Related

[getAsset](/utility/get-asset)
