Im using rex’s dynamic text plugin in my current project and ran into an error
object is not iterable (cannot read property Symbol(Symbol.iterator))
When i trying to spawn it in create of my scene like that:
var text = this.add.rexDynamicText({
x: 841.5,
y: 658.5,
width: 132,
height: 61,
background: {
color: null,
color2: null,
horizontalGradient: true,
stroke: null,
strokeThickness: 2,
cornerRadius: 0,
cornerIteration: null
},
style: {
bold: true,
fontSize: '45px',
fontFamily: 'Inter',
color: '#fff',
backgroundColor: null,
backgroundHeight: undefined,
backgroundBottomY: undefined,
},
});
text.setText('400');
I installed plugin in accordance with the documentation(docs)