# Sandbox.Resources.TextureGenerator

- Kind: class
- Namespace: `Sandbox.Resources`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.Resources.ResourceGenerator<T>](/api/Sandbox.Resources.ResourceGenerator<T>)
- Modifiers: abstract

## Properties

- [`FormatOverride`](/api/Sandbox.Resources.TextureGenerator/FormatOverride): When set, the compiled texture will use this format instead of automatically determining one. Useful to avoid block compression (BC1/BC7) for textures that require pixel-perfect quality (sprites, UI, icons).

## Methods

- [`Create`](/api/Sandbox.Resources.TextureGenerator/Create): Create a texture. Will replace a placeholder texture, which will turn into the generated texture later, if it's not immediately available.
- [`CreateAsync`](/api/Sandbox.Resources.TextureGenerator/CreateAsync): Create a texture. Will wait until the texture is fully loaded and return when done.
- [`CreateEmbeddedResource`](/api/Sandbox.Resources.TextureGenerator/CreateEmbeddedResource)
