Setting aside the notion for the moment that I should be using C# (there is a plan too convert once I get some breathing room), how can I program for ISelectHandler in JavaScript to I can code for some things to happen for OnSelect?
Like this (I put the script on a Button) :
#pragma strict
import UnityEngine.UI;
import UnityEngine.EventSystems;
public class SelectSomething extends MonoBehaviour implements ISelectHandler
{
function OnSelect ( eventData : BaseEventData )
{
Debug.Log(eventData.selectedObject.name);
}
}
Note this will only fire once, until the object is Deselected and Reselected again.