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
| Member | What it is |
|---|
protected CameraButton() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|
private HandCamera handCamera | The hand camera this button controls. |
Methods
| Member | What 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. |