So i have the following setup:
This produces the following UI:
Now on each of the "HudCircle"(Bottom/Right/Left/Top), I have the following components:
As you can see I have a script that has the following code:
public class HUDAction : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
public Color StartColor;
public Color SelectedColor;
public Image Image;
private void Awake()
{
Image = GetComponent<Image>();
StartColor = Image.color;
}
public void OnPointerEnter(PointerEventData eventData)
{
Image.color = SelectedColor;
Debug.Log("Over");
}
public void OnPointerExit(PointerEventData eventData)
{
Image.color = StartColor;
Debug.Log("Not over");
}
}
Sadly when playing this scene nothing happens when I hover either of the circles.
Can anyone tell me what I've done wrong?


