# Editor.AssetSystem.CompileResource

## Overload 1

```csharp
static bool CompileResource(string path, string text)
```

Compile a resource from text.

### Parameters

- `path` (`string`)
- `text` (`string`)

### Returns

`bool`

## Overload 2

```csharp
static bool CompileResource(string path, System.ReadOnlySpan<byte> data)
```

### Parameters

- `path` (`string`)
- `data` (`System.ReadOnlySpan<byte>`)

### Returns

`bool`

Declared in [Editor.AssetSystem](/api/Editor.AssetSystem).
Assembly: `Sandbox.Tools`.
