'Public Function cant be found in OnClick Event
So I have an Inventory and the Items have MataData, that I am scanning for. Although when I try to hook up the public void to the OnClick selection on the Button, it does not show up, why? Code Snipped:
public void ScanForFlashlightMetaData(string type, string Flashlight)
{
foreach (Slot slot in inventory)
if (slot.type == type && slot.metaData == Flashlight)
{
Debug.Log("Test");
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
