β˜‘ Attributes lost if entity is disabled on start

Hello, I have my game set up like this in the first picture, where GameController is under the disabled GameScreen.

However, when I enable the GameScreen and console.log the script, all of the attributes (that are set from inspector) are null. If I put GameController outside and enabled like in the second picture, the attribute references are saved.

This makes it hard to set up flows like this where I enable and disable different screens. Is there any way around this or plans to fix this in the future? Right now I am enabling every screen at the start and then immediately disabling them in order to fix this.

Hi,

The last engine release has caused a bug with this. We’re about to release a fix. Should be deployed in a few minutes.

Sorry for the inconvenience.

Fix is deployed. Script attributes that are on Entities disabled at startup should be initialized correctly now.

Thanks

1 Like

Thanks for fixing it so fast!