You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught TypeError: Cannot read property 'hasLoaded' of undefined
at new PIXI.Sprite (phaser.js:16530)
at Phaser.BitmapText.updateText (phaser.js:63037)
at new Phaser.BitmapText (phaser.js:62732)
....
Phaser wants to access hasLoaded property from this.texture.baseTexture, but because system is already working with BaseTexture format it of cource does not fin the property
This Issue is about (pick one, ✏️ delete others)
fontData.chars[5000] = {
x: f.x,
y: f.y,
width: f.width,
height: f.height,
xOffset: 1,
yOffset: charA.yOffset + Math.floor((charA.height - f.height) / 2),
xAdvance: f.width + 2,
kerning: [],
texture: new PIXI.Texture(font.base, new PIXI.Rectangle(f.x, f.y, f.width, f.height))
};
Changing texture type property in BMFontChar interface from PIXI.BaseTexture to PIXI.Texture solves the issue.
The text was updated successfully, but these errors were encountered: