# Sandbox.ThumbnailCamera

Put this in a prefab to frame its thumbnail - it's rendered from this object's position and
rotation instead of auto-framing the whole prefab. Point it at what should be in shot, or turn on
[Sandbox.ThumbnailCamera.FitToBounds](/api/Sandbox.ThumbnailCamera/FitToBounds) to just set the angle and have the prefab fill the frame.

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.Component](/api/Sandbox.Component)
- Modifiers: sealed

## Constructors

- [`ThumbnailCamera`](/api/Sandbox.ThumbnailCamera/.ctor)

## Properties

- [`FieldOfView`](/api/Sandbox.ThumbnailCamera/FieldOfView): Keep it narrow and pull the camera back - a long lens flattens the perspective and looks more cinematic than a wide one up close.
- [`FitToBounds`](/api/Sandbox.ThumbnailCamera/FitToBounds): Ignore where the camera is placed - keep its angle, but move it so the prefab's models fill the frame. Good for things that should all sit the same in a grid, like weapons.
- [`Focus`](/api/Sandbox.ThumbnailCamera/Focus): Slide the framing toward the interesting end when zoomed in, as a fraction of the fitted frame - x toward the right, y up. Measured before any roll on the camera, so a tilted gun slides along its own length.
- [`GizmoDistance`](/api/Sandbox.ThumbnailCamera/GizmoDistance): How far ahead to draw the framing in the editor - just a guide, it doesn't affect the render.
- [`Padding`](/api/Sandbox.ThumbnailCamera/Padding): Space left around the prefab when fitting, as a fraction of its size.
- [`Zoom`](/api/Sandbox.ThumbnailCamera/Zoom): Push in past the fit - above 1 crops into the prefab, so long things can run off the edge.
