Hi everyone,
in my Unity 2021.1.6f1 3D app I’ve got a little “Nemo” fish sprite (“Sprite (2D and UI)”) that I want to be clickable but so far I’ve not been able to get the Event Trigger to actually trigger.
The sprite uses the “Clickables” layer and has got a sphere collider around it and the main camera has a physics raycaster with the event mask set to the same “Clickables” layer.
I’ve already tried the “Pointer Down”, “Pointer Exit” and “Pointer Click” events but the following function was never called/the print was never printed to console:
public void ClickMe() {
Debug.Log("Nemo was clicked!");
}
Screenshots of the inspector: Nemo & main camera
(Nemo is rotated by 180°, so it faces the camera.)
What am I missing?