# Sandbox.Resources.ResourceGenerator.FindOrCreateObjectAsync

```csharp
System.Threading.Tasks.ValueTask<Resource> FindOrCreateObjectAsync(Options options, System.Threading.CancellationToken token)
```

If we generated this before, then find the current cache'd value.
If not, then generate a new one.

### Parameters

- `options` (`Options`)
- `token` (`System.Threading.CancellationToken`)

### Returns

`System.Threading.Tasks.ValueTask<Resource>`

Declared in [Sandbox.Resources.ResourceGenerator](/api/Sandbox.Resources.ResourceGenerator).
Assembly: `Sandbox.Engine`.
