# Sandbox.Resources.TextureGenerator.FormatOverride

```csharp
System.Nullable<ImageFormat> FormatOverride { get; set; }
```

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).

Declared in [Sandbox.Resources.TextureGenerator](/api/Sandbox.Resources.TextureGenerator).
Assembly: `Sandbox.Engine`.
