# Sandbox.CameraComponent.RenderToTexture

```csharp
bool RenderToTexture(Texture target, in ViewSetup config = null)
```

Render scene to a texture from this camera's point of view

### Parameters

- `target` (`Texture`)
- `in config` (`ViewSetup`), default `null`

### Returns

`bool`

Declared in [Sandbox.CameraComponent](/api/Sandbox.CameraComponent).
Assembly: `Sandbox.Engine`.
