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
When you create a container with GameObjectCreator, only one of the children is displayed. Creating with GameObjectFactory works fine.
Example Test Code
classTestSceneextendsPhaser.Scene{create(){// does not show all childrenthis.make.container({x: 10,y: 50,children: [this.make.text({text: "qwer",x: 50,},false),this.make.text({text: "asdf",x: 100,},false),this.make.text({text: "zxcv",x: 150,},false),]},true)// this works finethis.add.container(10,100,[this.make.text({text: "qwer",x: 50,},false),this.make.text({text: "asdf",x: 100,},false),this.make.text({text: "zxcv",x: 150,},false),])// this also works fineconstcontainer=this.make.container({x: 10,y: 150,children: [],},false)container.add(this.make.text({text: "qewr",x: 50,},false))container.add(this.make.text({text: "asdf",x: 100,},false))container.add(this.make.text({text: "zxcv",x: 150,},false))this.add.existing(container)}}newPhaser.Game({type: Phaser.AUTO,width: 320,height: 240,scene: newTestScene(),})
Additional Information
The text was updated successfully, but these errors were encountered:
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
Version
Description
When you create a container with GameObjectCreator, only one of the children is displayed. Creating with GameObjectFactory works fine.
Example Test Code
Additional Information
The text was updated successfully, but these errors were encountered: