Skip to main content

CameraButton

An abstract class in Root.Township, Alta.ScreenshotCamera.

Base for hand camera buttons that refresh when the camera's settings change. Does nothing on a headless server.

Constructors​

MemberWhat it is
protected CameraButton()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private HandCamera handCameraThe hand camera this button controls.

Methods​

MemberWhat it is
protected virtual void Awake()Not headless: hooks the camera's settings event and refreshes once.
protected abstract void UpdateSettings(HandCamera handCamera)Subclasses refresh the button from the camera's settings.