Adventure Creator  1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
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. More...
 

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