Open dladeira opened 1 month ago
Hey, I'm creating a text component like this
const portText = new FFText({ text: `Bedrock port: ${server.port}`, fontSize: 72, color: "#ffffff", duration: finalDuration - outroDuration, }); portText.setFont(`./public/fonts/${body.font}`); portText.addEffect("fadeIn", 0.01, finalDuration - outroDuration); portText.addEffect("fadeOut", 0.01, finalDuration); scene.addChild(portText);
And I'm trying to get it's display width by serverLogo.getWH()[0], although this is returning null. Is there a way I can know how wide it is going to be? Thanks in advance
serverLogo.getWH()[0]
Oh, maybe there is no good way to get it
Hey, I'm creating a text component like this
And I'm trying to get it's display width by
serverLogo.getWH()[0]
, although this is returning null. Is there a way I can know how wide it is going to be? Thanks in advance