Mouse on click not working in Actor BP

I have implemented Variants through variant manager at the beginning I have custom PC show cursor enabled in custom defaults at that time variants worked good. But when disabled showing mouse cursor it stopped working so I changed code in BP actor to show mouse cursor while overlapping pawn. Still it’s not working

here is my setup. And how can I make it work


First off casting is an expensive node to use so i would recommend if your going to do it use it on the event begin play, then promote it to a variable to use do your not casting like 100 times during game play which will 100% tank your performance at some point. When you are using the on begin overlap and end overlap there is an issue where your object can overlap many times as well as stop overlapping the object many times, in your case the sphere. You may have to figure out a different way to have the node stop showing the mouse such as when the player clicks it, it removes the mouse or some sort of system that is tracking the mouse when it is in X location such as event tick maybe.

Im also wondering are you using a widget that pops up or something? You may need to swap to game mode ui only and when off that you swap back to game play only and so on and so on. If you are doing that you can simply promote the widget from your character from your cast node and pull from the character if you need to get the widget data. Not sure if any of this helps but enjoy.

Yeah thanks for that. I am already using other actor equating with player pawn. This class is for showcasing in forums only :sweat_smile:. Thanks in advance

Thank you. It wouldn’t be much tougher if for game project. Arch Viz guys both cursor and flawless mouse movement for character. And they had many Widget BP. That’s the challenge.

Anyway worked out. Thanks for the reply

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.