Level streaming "should be visible" calls beginplay

Teapot Creation
Tue, 16 Jun 2020 13:40:19 +0000
Community & Industry Discussion

Hey there,
I’m using level streaming in my game. When pausing the game, it hides an already loaded level (set bShouldBeVisible to false) and loads a level instance for the menu. When the player exits the menu, it is unloaded and the precedent (stil loaded) level is shown again (bShouldBeVisible=true).
I’ve noticed that each time the level is set to visible again, all beginplay events are called. Should this happen ? Since I have random variables set at beginplay it’s pretty annoying, these values change each time the menu is open/closed… I want to set them once at LOADING until the level is UNLOADED (not only hidden).
Any idea ?

EDIT : after further tests it looks like the actors are kind of reset, events that have been fired before are considered as not fired. But actors that have moved are in the same position. Could someone explain me this please ?

11 posts - 1 participant