OnClick event doesn't allow to click on object due to another hidden object blocking it

Hi all, I have basically an object configurator with extras, the extras being that you can click on each object and a widget appears. However, since the objects need to appear at the same place (one is always visible and the other 2 are hidden in the same spot as the visible one until the widget changes the visible one) the onClick event doesn’t allow clicks all over the visible object because the hidden ones are blocking it. How could I stop those hidden objects from messing with the “clickability” of the visible one?

Thanks in advance :blush:

When you hide them, also:

image

Enable it again when they show up.

So it’s just about them having collision enabled? Will try this now! Thanks a lot :slight_smile:

This a ham-fisted approach, of course.


Can be made more granular in case other collisions must be kept intact:

  • the controller traces on the Visibility channel by default:

image

  • any component’s response to that channel can be adjusted:

image

This one mesh will ignore clicks from now on. This can be set dynamically with nodes.


In short: Hidden objects are still in the world and collide as normal.

Ok, so I just implemented the Set Actor Enable Collision but that didn’t make a difference. I will try your other suggestion with the custom collision settings.

You need to point it at an actor with the Target pin. If in doubt, post script. It should work as is.