# Sandbox.Sprite.FromTexture

```csharp
static Sprite FromTexture(Texture texture)
```

Returns a sprite with a single frame animation using the provided texture.

### Parameters

- `texture` (`Texture`): The texture to be used

### Returns

`Sprite`

Declared in [Sandbox.Sprite](/api/Sandbox.Sprite).
Assembly: `Sandbox.Engine`.
