Adventure Creator  1.66.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2018
AC.UISlotClick Class Reference
Inheritance diagram for AC.UISlotClick:

Public Member Functions

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

Detailed Description

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

Member Function Documentation

◆ Setup()

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

Syncs the component to a slot within a menu.

The Menu that the Button is linked to

The MenuElement within _menu that the Button is linked to

The index number of the slot within _element that the Button is linked to