Skip to main content

HandCameraViewfinderResizerSettings

A internal class in Root.Township, Alta.ScreenshotCamera. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Client: keeps the hand camera's viewfinder from going further than a set distance from the player's head, pulling it in along the line of sight. Internal asset.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private float clampDistanceFurthest the viewfinder can be from the head. Default 3.
private HandCameraViewfinderResizerSettings.HandCameraViewfinderResizer currentResizerThe resizer running for the current viewfinder, or null.

Methods​

MemberWhat it is
void DisableResizing()Stops the current resizer, if any.
void EnableResizingForTarget(Transform viewFinder)Starts clamping a viewfinder transform each late update, replacing any resizer already running.

Used in​

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