Can't get mouse cursor to interact with objects

So, I have something set up where when you press interact at a certain spot, the camera looks at something and your cursor shows up (I’m trying to go for something like the control panels in Alien Isolation.)

Just for testing purposes, I have a simple setup for a static mesh to change materiels whenever the cursor is over it.

But whenever I hover the cursor over it, nothing happens.
Anybody have any ideas as to why?

Did you enable mouse over events in the player controller?

image

2 Likes

I can’t seem to find the player controller anywhere in my scene. I’m using the third person template, do I need to create it myself?

Also worth noting that I’ve tried using a “set enable mouse over” which doesn’t seem to work either.

I’m using the third person template, do I need to create it myself?

No, you can use the default one and fire this on Begin Play, perhaps in the character blueprint:

image

The mesh must also have collision:

The green wireframe appears around the mesh (double click the actual mesh asset to get to this view). If there is no collision, a simple shape can be added like so:

image


To expand on this:

  • the Visibility channel is used by default to detect such interaction:

image

  • the static mesh must block it: