# Editor.AssetSystem.CreateResource

```csharp
static Asset CreateResource(string type, string absoluteFilename)
```

Create an empty [Sandbox.GameResource](/api/Sandbox.GameResource).

### Parameters

- `type` (`string`): Asset type extension for our new [Sandbox.GameResource](/api/Sandbox.GameResource) instance.
- `absoluteFilename` (`string`): Where to save the new [Sandbox.GameResource](/api/Sandbox.GameResource) instance. For example from [Editor.FileDialog](/api/Editor.FileDialog).

### Returns

`Asset`: The new asset, or null if creation failed.

Declared in [Editor.AssetSystem](/api/Editor.AssetSystem).
Assembly: `Sandbox.Tools`.
