Skip to main content

HandCameraSettings

A class in Root.Township, Alta.ScreenshotCamera.

ScriptableObject with the hand camera's tuning: timer options, flash and fade timings, photo colours, antialiasing and the layers that block a shot.

Constructors​

MemberWhat it is
HandCameraSettings()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

8 private and internal fields
MemberWhat it is
private PostProcessLayer.Antialiasing activeAntialiasingBacking field for ActiveAntialiasing.
private LayerMask blockLayerMaskBacking field for BlockLayerMask.
private float captureAlertDurationBacking field for CaptureAlertDuration.
private float fadeDurationBacking field for FadeDuration.
private Color photoColorBacking field for PhotoColor.
private float photoReviewTimeBacking field for PhotoReviewTime.
private int[] timerOptionsSelf-timer lengths in seconds, 0, 2, 5 and 10 by default. Read through GetTimer.
private Color timerTickColorBacking field for TimerTickColor.

Properties​

MemberWhat it is
PostProcessLayer.Antialiasing ActiveAntialiasing { get; }Post-process antialiasing mode used while the camera is active. Defaults to FXAA.
LayerMask BlockLayerMask { get; }Layers that count as blocking the camera.
float CaptureAlertDuration { get; }How long the capture alert shows, in seconds. Defaults to 0.2.
float FadeDuration { get; }Fade time in seconds. Defaults to 0.5.
Color PhotoColor { get; }Colour used for the photo. Defaults to white.
float PhotoReviewTime { get; }How long a taken photo stays up for review, in seconds. Defaults to 4.
int TimerOptionsLength { get; }Number of self-timer options, used to cycle through them.
Color TimerTickColor { get; }Colour shown on each self-timer tick. Defaults to red.

Methods​

MemberWhat it is
int GetTimer(int current)Returns the self-timer length in seconds for the given option index.

Used in​

Members of other types that take, return or hold a HandCameraSettings: