Skip to main content

NavigateTo

A class in Root.Township, Alta.Meta.UI.

Switches the UI to a given panel when a button is released.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private Button buttonThe button that triggers the switch.
private Panel panelThe panel to switch to.

Methods​

1 private and internal method
MemberWhat it is
private void Awake()Hooks the button's release to panel.SwitchTo.