-
Notifications
You must be signed in to change notification settings - Fork 6
TBScreenshotCamera
An optional editor tool that simplifies the creation of 2D screenshots by spawning a 2D camera that matches the settings of TBCameraRig
.
You must be using TBCameraRig
in your scene.
- Place the
TBScreenshotCamera
prefab anywhere in your scene
or - Drag the
TBScreenshotCamera
into the "ScreenshotCamera" field inTBCameraRig
's inspector
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 inTBCameraRig
to make multiple presets.