Everything posted by Likl
I just don't know how to abstract my problem into a demo vividly, maybe like this: https://pixiplayground.com/#/edit/A1rmMvGweWbWYig1xE7ua And I have a typing error above : PIXI.Graphics.getBounds() should be PIXI.Sprite.getBounds() instead. I noticed that in my own program, PIXI version point to 4.5.5, while the pixi-playground hold the minimum version for v4.6.1, And in v4.6.1 , my problem didn't reproduce. It's time to upgrade my pixi version thanks for your reply a lot.
I am a new for PIXI. When I want to draw surrounding line on a rectangle , i use getBounds() method. But there is something difference between 2 calls, the first time I got a coordinate which is relative to the app stage, second time I got a coordinate which is relative to the browser window. However, between two calls, the invoked PIXI.Graphics has the same parent and children .I just don't know why is it.