# Editor.Asset.LoadResource

## Overload 1

```csharp
Resource LoadResource()
```

Try to load this asset as an automatically determined resource type.
If this isn't a resource type (like an Image) then it will return null.

### Returns

`Resource`

## Overload 2

```csharp
T LoadResource()
```

Try to load this asset as a [Sandbox.Resource](/api/Sandbox.Resource) of given type.

### Returns

`T`: The loaded [Sandbox.Resource](/api/Sandbox.Resource) instance of given type, or null on failure.

## Overload 3

```csharp
Resource LoadResource(System.Type resourceType)
```

Try to load this asset as a [Sandbox.Resource](/api/Sandbox.Resource) of given type.

### Parameters

- `resourceType` (`System.Type`)

### Returns

`Resource`: The loaded [Sandbox.Resource](/api/Sandbox.Resource) instance of given type, or null on failure.

Declared in [Editor.Asset](/api/Editor.Asset).
Assembly: `Sandbox.Tools`.
