Hey guys.. I'm hoping this is something I'm doing wrong, but basically.. when I'm creating a new SVG, it's having width, and height of 1 until 1 frame has passed and then it has actual dimensions.
My guess is that the onTextureChange event is being triggered, however the new local transformation isn't happening until the next loop takes place. Here is an example of my code:
var texture = PIXI.Texture.fromImage('mySVGPath.svg');
var sprite = new PIXI.Sprite(texture);
console.log(sprite.width, sprite.height) // 1, 1
setTimeout(() => {
console.log(sprite.width, sprite.height) // 500, 465
}, 0);
Is there a way of solving this? Thanks!