Bug : Lines do not display correctly if Text is added to the scene #6787
Unanswered
DoodahProductions
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I encounter this display issue where Lines do not display correctly if Text is added to the scene.
Lines added without any Text display correctly in all directions :
Lines added with any Text display correctly only when vertical / horizontal :
Tested on : Google Chrome
Repro steps :
Create a class 'Block' that extends Phaser.GameObjects.Container. This class should add a Rectangle as child and be draggable.
Add two 'Block' to your scene
On update, draw a Line that will link the two Block
Drag and Drop any of the Block and see that Line is correctly displayed in any direction.
Add a Phaser.GameObjects.Text to the Block
Drag and Drop any of the Block and see that Line is only displayed when Blocks are aligned horizontally/vertically.
Beta Was this translation helpful? Give feedback.
All reactions