Skip to main content

TouchScreenMenu

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​

MemberWhat it is
TouchScreenMenu()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 camera this menu is on.

Properties​

MemberWhat it is
protected override bool IsScreenFree { get; }Whether the camera screen is free, from HandCamera.IsScreenFree.

Methods​

MemberWhat it is
protected override void SetupForLocal()For the local owner, hooks the hand camera render events.
5 private and internal methods
MemberWhat 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: