setInteractive on container with pixel perfect option

Hello everybody!

I know it is currently not possible to enable pixel perfect hit detection when using a container and not a single sprite.

I am developing an isometric game like Anno. I have my tiles split up in equal width images and combine them on runtime for correct layering:

To combine the individual sprites I use a container and add the sprites as children.
Now I want to enable click events on the container. I want to be able to click a building.
Since the sprites have transparent backgrounds and can overlap other buildings, I need the pixel perfect option.
What can I do to enable this behaviour when working with containers?

1 Like