I have a problem in mouse click on button in lemur gui

I have two Containers in a position and hide and show them when the spatials selected and deselected by a mouse R/L click.

I hide them by setCullHint method but its buttons receive mouse events.

how to prevent or fix it?

Remove them instead of hide them. There is no real advantage to leaving them in the scene graph.

Edit: note that the real issue is JME’s picking stuff that Lemur calls. There is no way to control what collideWith() will/won’t traverse.

1 Like