A class in Root.Township, Alta.ScreenshotCamera.
The hand camera's touch screen menu. Sets up for the owner and hides its buttons while the camera renders.
Constructors
| Member | What it is |
|---|
TouchScreenMenu() | 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 camera this menu is on. |
Properties
| Member | What it is |
|---|
protected override bool IsScreenFree { get; } | Whether the camera screen is free, from HandCamera.IsScreenFree. |
Methods
| Member | What it is |
|---|
protected override void SetupForLocal() | For the local owner, hooks the hand camera render events. |
5 private and internal methods
| Member | What it is |
|---|
private void Awake() | Off headless, waits for the camera's owner update. |
private void OnDestroy() | Unhooks the render events. |
private void PostRenderEnableButtons(HandCamera renderingCamera, HandCameraEvent cameraEvent) | Turns the buttons back on after a hand camera render. |
private void PreRenderDisableButtons(HandCamera renderingCamera, HandCameraEvent cameraEvent) | Turns the buttons off before a hand camera render. |
private void UpdateOwner(bool isOwned) | Runs Setup once with whether the local player owns the camera. |
Used in
Members of other types that take, return or hold a TouchScreenMenu: