Open rexrainbow opened 2 years ago
This issue has been mentioned on Phaser. There might be relevant details there:
https://phaser.discourse.group/t/moving-mask-in-container-issue/5095/7
Any progress on this? It's still present on 3.60
如果条件允许的话,我觉得把mask部分的组件用官方容器重构一下应该就可以了。
Version
Description
Here is the test code. There are two game objects, a Graphics game object to create mask, apply this mask to another image game object.
I guess that mask will be applied in world position/scale/angle, not local position/scale/angle of container. So mask source game object (Graphics game object, in this case) ought to set position/scale/angle from container to world, under render method, then reverse these properties back.