0
Not a Bug

[SOLVED] Machines disappear when scene is reloaded

Heleo 2 weeks ago • updated by Lazlo Bonin (Lead Developer) 2 days ago 1

Hello,

I am not sure if it is a bug, maybe my comprehension of bolt is also implied in this.

I am recoding a 2D plateformer game with bolt.

Like in the tutorial, I made my HUD in a separate scene and load it in additive mode.

When the character fall, the scene is reloaded.

But sometimes some flow machine of the HUD are not reloaded with the main scene.

I made a video in which the score label flow machine disappears the third time the scene is loaded: 

The problem never happened at the first time the scene is loaded. 

Thanks in advance!

Edit:

Since I replaced the "Start" event for loading the HUD by an "On Enable" event this problem vanished.

I don't really know what happened but there was possibly a conflict at the loading.

Bolt Version:
1.4.1
Unity Version:
2017.4.19f1
.NET Version:
3.5
Not a Bug

Hm, it's odd, but indeed it might just be some complex load order issue. I'm not sure how well Unity supports loading a new scene while one is already being loaded (e.g. if start/enable is called from loading). Anyhow, glad you got it fixed!