# Sandbox.Resources.ResourceGenerator.CacheToDisk

```csharp
bool CacheToDisk { get; set; }
```

If true then the generation will create a real resource and store it on disk.
Use this if creating the resource takes a while, or you won't be shipping the generator
with the game, or if it relies on data that won't be available in the shipped game.

Declared in [Sandbox.Resources.ResourceGenerator](/api/Sandbox.Resources.ResourceGenerator).
Assembly: `Sandbox.Engine`.
