Disable click on certain entity

Hi,

I am trying to create a pop up menu using playcanvas. What I want is when the pop up menu becomes visible on the screen, no other element should respond to any event until the pop up is closed.

Is there a way to do it?

Yeah, I thought of something like that. Instead of a big transparent button I used a transparent image. But that did not help, as I was able to click the buttons underneath the transparent image element.

I found out that playcanvas has provided a method in there API, where one can allow clicks only to a certain element.

this.entity.element.userInput = true