Event not working with "Cast failed"

you are trying to run the ‘pas en focus’ event through a reference to ‘BP menu’ that doesnt exist, because the cast failed.

Hello,

I have an object (the Circle) that I want to be grey when not in focus, and green when in focus.
So resulting to a LineTracebyChannel and BreaHitResult, I casted it into the wanted object (the circle is called BP_Menu).

I want to have two events : “on focus” and “not on focus” but the problem is that if the first one work (when casted to the object, it result in activating the event in the second graph), the second resulting in “if cast fail” doesn’t seem to be activated in the second graph, even though you can see it’s activated on the first graph…

I tried several solutions but couldn’t find something working. (Working with blueprints is still new for me)

So can you please help me to have my two events working ?

Regards,
Pierre

Oh, I see now, I think I misunderstood how the ‘cast to’ element worked :confused: Thank you for your response, I’ll find another way to do it.

Question:I have a similar issue, only action events won’t fire regardless of whether the cast is successful or not, any idea?

Like I have input rotate, if i conduct a cast, whether it fails or succeeds, i cant use this input, but if i specify a key int he blueprint,that works, do you know why this is?