# Editor.Asset.CompileIfNeededAsync

```csharp
System.Threading.Tasks.ValueTask<bool> CompileIfNeededAsync(float timeout = 30)
```

Returns a task that will resolve when the asset is compiled. If the asset is already compiled, do nothing. Does not support maps.

### Parameters

- `timeout` (`float`), default `30`

### Returns

`System.Threading.Tasks.ValueTask<bool>`: true if the compile was needed, and was successful.

Declared in [Editor.Asset](/api/Editor.Asset).
Assembly: `Sandbox.Tools`.
