ajvar23 wrote:how is posible to do that?
when i put invisible object over some i dont want to be clicked, still ghet clicked
even i put him in new layer and still same
The invisible object are not meant to block the object under it, it's just like a hit area / hittest, so give your events to that invisible object, not the object under it.
And, if you want to activate/deactivate the mouse click logic, just destroy/spawn that invisible object. Or, if you want more advance, you can add your own (instance) variable, e.g: disabled. Then, in your mouse click event, add another event condition to check if it is not disabled.