Bind Event to Level Shown with Load Stream Level

Hello,

I have a sub-level, and when the player clicks a button, I load the level and set the position for a pawn based on that level.

My problem is that when I use “Load Stream Level“ and try to set the position, the actors of that level they were not spawned yet, so I used “Bind Event to On Level Shown“ to only set the position after the level finishes loading.

But my event is never called. When I check with “Get Display name,” it returns to me “LevelStreamingDynamic_0“.

What am I doing wrong? Is it possible to use “Load Stream Level” here, or do I need to load the level in another way? How do I get the Level Streaming object of a level loaded with “Load Stream Level”?

Thank you

Binding to a name like that won’t work, you need a reference from the level load, like

I’m not sure if the node ( I’ve shown ) will use your stream level or just stream an independent version of it.

Using the node you have, is that the level is loaded when the completed pin fires. But not visible yet…

Thank you for your response,

But using “Load level Instance“ ( as far as I know, but I may be wrong) creates a new instance of the level like a prefab, and it’s not asynchronous, so all values that I used in the Editor will be lost.

Is there no way to get the “Level Streaming” handle If I use the “Load Stream Level”?

1 Like

‘Load level instance’ is using streaming under the hood.

I’m not quite sure what you mean about ‘values saved in the editor’. If you edit one of the levels, when you stream it as an instance, it will be the updated version.

I don’t know a way to get a reference using blueprint, apart from this.

1 Like