UNPKG

phaser4-rex-plugins

Version:
9 lines (7 loc) 259 B
const PhaserText = Phaser.GameObjects.Text; var CreateBuiltInText = function (scene, style) { var gameObject = new PhaserText(scene, 0, 0, '', style); scene.add.existing(gameObject); return gameObject; } export default CreateBuiltInText;