ButtonWithEvents
A class in Root.Township, Alta.Meta.UI.
A menu Button that also fires Unity events set in the inspector when pressed, released, enabled or disabled.
- Listed in Menus, UI and platforms
- Inherits or implements
Button - Derived types
TextButton - Attributes
SelectionBase
Constructors
| Member | What it is |
|---|---|
ButtonWithEvents() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
Methods
| Member | What it is |
|---|---|
protected virtual void Awake() | Hooks the press, release and enabled change events to the inspector Unity events. |
1 private and internal method
| Member | What it is |
|---|---|
private void HandleEnabledChanged(Button obj) | Invokes onEnable or onDisable when the button's enabled state changes. |
Used in
Members of other types that take, return or hold a ButtonWithEvents:
ListElementWithButton.button, ListElementWithButton.Button, GroupInfoTab.leaveGroupButton, JoinedGroupListElement.inviteButton, ListElementWith2Buttons.button2, ListElementWith2Buttons.Button2, ServerDetailsPanel.ButtonData.button, RecentPlayersPage.backButton, RecentPlayersPage.forwardButton, RecentPlayersPage.homeButton, GymnasiumTeleportPointPage.backButton, GymnasiumTeleportPointPage.forwardButton.