Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game object on a camera-ignored layer is still touchable #5883

Closed
rexrainbow opened this issue Oct 25, 2021 · 1 comment
Closed

Game object on a camera-ignored layer is still touchable #5883

rexrainbow opened this issue Oct 25, 2021 · 1 comment

Comments

@rexrainbow
Copy link
Contributor

rexrainbow commented Oct 25, 2021

Version

  • Phaser Version: v3.60.0
  • Operating system: win10
  • Browser: Chrome, firefox

Description

See this test,

  1. Create a layer game object
  2. This layer game object is ignored by main camera
  3. Create a circle shape game object, with pointer-down event.
  4. Add this circle shape to layer. Because that this layer is ignored by main camera, this circle shape game object child is not visible.

There has another red dot inside the circle shape for clicking. Ideally invisible game object won't be touchable. But the pointer-down event is fired, you can see the log text on a text game object.

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants