Adventure Creator 1.84.3
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2024
Loading...
Searching...
No Matches
AC.UISlotClick Class Reference
Inheritance diagram for AC.UISlotClick:
AC.UISlotClickRight

Public Member Functions

void OnSelect (BaseEventData eventData)
void Setup (AC.Menu _menu, MenuElement _element, int _slot)
 Syncs the component to a slot within a menu.

Protected Attributes

AC.Menu menu
MenuElement menuElement
int slot

Detailed Description

This component acts as a click handler for Unity UI Buttons, and is added automatically by UISlot.

Member Function Documentation

◆ OnSelect()

void AC.UISlotClick.OnSelect ( BaseEventData eventData)

Implementation of ISelectHandler

◆ Setup()

void AC.UISlotClick.Setup ( AC.Menu _menu,
MenuElement _element,
int _slot )

Syncs the component to a slot within a menu.

Parameters
_menuThe Menu that the Button is linked to
_elementThe MenuElement within _menu that the Button is linked to
_slotThe index number of the slot within _element that the Button is linked to