Generate Overlap Events turn off/on

How can i manually change Generate Overlap Event (checkbox)?
Is there a way to turn off/on Generate Overlap Event, on button click inside blueprint event graph?
So that when i press button it goes on, when button released it goes off again and so on…
I am trying to change primitive component generate overlap event, but cant find reference to it.

For your component, you’d want to Set GenerateOverlapEvents.

2 Likes

well, that was easy, thank you!

How to do this in C++?

mesh->SetGenerateOverlapEvents(false);