# Sandbox.RenderAttributes.GetTexture

## Overload 1

```csharp
Texture GetTexture(in StringToken name, in Texture defaultValue = null)
```

Get a texture value - else defaultValue if missing

### Parameters

- `in name` (`StringToken`)
- `in defaultValue` (`Texture`), default `null`

### Returns

`Texture`

## Overload 2

```csharp
Texture GetTexture(in string name, in Texture defaultValue = null)
```

### Parameters

- `in name` (`string`)
- `in defaultValue` (`Texture`), default `null`

### Returns

`Texture`

Declared in [Sandbox.RenderAttributes](/api/Sandbox.RenderAttributes).
Assembly: `Sandbox.Engine`.
