Skip to content

TBScreenshotCamera

Holden Link edited this page Jan 20, 2017 · 5 revisions

Overview

An optional editor tool that simplifies the creation of 2D screenshots by spawning a 2D camera that matches the settings of TBCameraRig.

Dependencies

You must be using TBCameraRig in your scene.

Usage

Setup

  • Place the TBScreenshotCamera prefab anywhere in your scene
    or
  • Drag the TBScreenshotCamera into the "ScreenshotCamera" field in TBCameraRig's inspector

TBScreenshotCamera inspector

Taking Screenshots

In play mode, select TBScreenshotCamera in the hierarchy or click the button in TBCameraRig's inspector. Then click the "Enable Screenshot Camera" in the inspector. Once the camera is enabled, make sure your Save Location is set in the inspector. Adjust the other options as you'd like.

Manually position the camera it in the scene view like you would any camera, and hit "Take Screenshot" to take a screenshot. The Camera Alignment section of the inspector lets you quickly toggle the screenshot camera's transform between being a child of TBCenter and having no parent. The "Reset Position" and "Reset Orientation" buttons will make it match TBCenter's position or orientation.

Tip: Adjust TBScreenshotCamera's settings in its prefab before you hit play if you want settings like the save folder to persist across sessions. You can duplicate the prefab and swap between them in TBCameraRig to make multiple presets.

Clone this wiki locally