# Sandbox.ResourceLibrary.Get

## Overload 1

```csharp
static T Get(int identifier)
```

> **Obsolete.** Use Get<T>(filepath) instead. Identifier based access will be removed in a future update.

Get a cached resource by its hash.

### Parameters

- `identifier` (`int`): Resource hash to look up.

### Returns

`T`

## Overload 2

```csharp
static T Get(string filepath)
```

Get a cached resource by its file path.

### Parameters

- `filepath` (`string`): File path to the resource.

### Returns

`T`

Declared in [Sandbox.ResourceLibrary](/api/Sandbox.ResourceLibrary).
Assembly: `Sandbox.Engine`.
