I tried with Pointer Enter but that didn’t work very well. http://postimg.org/image/z1dw3llyl/6c2abf4b/ It worked only when moving cursor from outside. Idea is that player should keep right mouse button pressed when selecting a segment.
So set a bool as I said.
private bool hovering = false;
void Update()
{
if(hovering)
Debug.Log(gameObject.name);
}
public void OnPointyEnter()
{
hovering = true;
}
public void OnPointyExit()
{
hovering = false;
}
Of course in the Update you’ll want to handle the Input from the right button but put this script on each image and change the name of each image so it reports back when over that image.
You also need to Add the PointerExit and PointerEnter for each button.
Not tested the code though so may contain typos!
OnHover should be used