# Issue with loading Level Stream instances using blueprints

**URL:** <https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312>\
**Category:** World Creation\
**Tags:** Level-Streaming, instance, streaming-level, unreal-engine, editor, Blueprint, question\
**Created:** [August 1, 2015, 6:18pm UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312 "2015-08-01T18:18:17Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![HiIAmMoot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HiIAmMoot](https://forums.unrealengine.com/u/HiIAmMoot)\
**Post date:** [August 1, 2015, 6:18pm UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/1 "2015-08-01T18:18:17Z")

</div>

So I’m trying to make a procedual level just like what is explained in the first part of this tutorial:  
[Procedual room generation][1]

Most of it is taken from the tutorial. What I’ve added was a string to set the name each instance. Then I’ve added a “create Instance” node and added the “get streaming level” which I did by dragging my level stream from the “levels” subwindow into the blueprint. I hooked that and the string to the “create Instance node” and added a “level transform” referencing the generated instance and the transform calculated for each tile of the level.

[http://puu.sh/jkdYG/73e9652eca.png](http://puu.sh/jkdYG/73e9652eca.png)

Inside the editor the meshes of both levels referenced in the blueprint are visible. But when I play my map there is nothing there.

My blueprint can be seen here. This was done in the level blueprint of the main map.  
[Blueprint][3]

Anyone know what I’m doing wrong? Note that I tried packaging my project and launch it but there is still nothing to be seen.  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![SolarVelocity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SolarVelocity](https://forums.unrealengine.com/u/SolarVelocity)\
**Post date:** [August 2, 2015, 2:16am UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/2 "2015-08-02T02:16:33Z")

</div>

Do you have scene components in your persistent level where player starts?

You probably need to load first level where player starts in the construction script so it is loaded by time player spawns then streaming levels should work as needed from there

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_afd92cec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_afd92cec](https://forums.unrealengine.com/u/anonymous_user_afd92cec)\
**Post date:** [August 2, 2015, 7:28am UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/3 "2015-08-02T07:28:21Z")

</div>

I don’t see where you actually load your level instances. LevelStreaming object returned by CreateInstance node has two properties you need to change: ShouldBeLoaded and ShouldBeVisible need to be set to ‘True’.

---

<div class="post-metadata">

**Author:** ![AnadinX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anadinx/32/1008648_2.png) [@AnadinX](https://forums.unrealengine.com/u/AnadinX)\
**Post date:** [August 2, 2015, 7:45am UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/4 "2015-08-02T07:45:44Z")

</div>

I managed to get it working by adding in a ‘Load Streaming Level’ node

 ![52449-screenshot+2015-08-02+17.43.46.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/c/71c227366f9432e4e8c4463fd7cfb5a70b939c56.png)

---

<div class="post-metadata">

**Author:** ![HiIAmMoot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HiIAmMoot](https://forums.unrealengine.com/u/HiIAmMoot)\
**Post date:** [August 2, 2015, 11:25am UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/5 "2015-08-02T11:25:33Z")

</div>

Thanks. That did the trick, although it only loads the level stream once.

---

<div class="post-metadata">

**Author:** ![AnadinX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anadinx/32/1008648_2.png) [@AnadinX](https://forums.unrealengine.com/u/AnadinX)\
**Post date:** [August 3, 2015, 3:51am UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/6 "2015-08-03T03:51:27Z")

</div>

OK made a change and I have it alternating between each level 3 times here, (using MOD to alternate even/odd)

 ![52527-screenshot+2015-08-03+13.48.44.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/8/8d854914bd10cc7584ff1072504b356f938e4559.png)

 ![52528-screenshot+2015-08-03+13.48.56.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/e/40ed911c2205a0dc3303bcdae8c1cb9b8eb8339b.png)

---

<div class="post-metadata">

**Author:** ![HiIAmMoot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HiIAmMoot](https://forums.unrealengine.com/u/HiIAmMoot)\
**Post date:** [August 3, 2015, 9:42am UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/7 "2015-08-03T09:42:31Z")

</div>

That setup just spawns two levels for me, not six.

This what I have so far.  
[Video](https://www.youtube.com/watch?v=uAd4v_0wAf0)  
The issue is the create instance node does not want to create a new instance of a level that had an instance created before. Only if I were to unload that level it creates the instance.

---

<div class="post-metadata">

**Author:** ![AnadinX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anadinx/32/1008648_2.png) [@AnadinX](https://forums.unrealengine.com/u/AnadinX)\
**Post date:** [August 3, 2015, 12:49pm UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/8 "2015-08-03T12:49:30Z")

</div>

Thats super weird, perhaps a bug? which version of UE are you one, I am 4.8.3 on OS X. I can spawn any combination of levels, I did the alternate ones just to show that its working with more than one level and repeating them.

---

<div class="post-metadata">

**Author:** ![AnadinX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anadinx/32/1008648_2.png) [@AnadinX](https://forums.unrealengine.com/u/AnadinX)\
**Post date:** [August 3, 2015, 12:53pm UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/9 "2015-08-03T12:53:42Z")

</div>

Can you send a screenshot of your new BP? are you doing it in the level BP of the Persistent Level?

---

<div class="post-metadata">

**Author:** ![HiIAmMoot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HiIAmMoot](https://forums.unrealengine.com/u/HiIAmMoot)\
**Post date:** [August 3, 2015, 1:18pm UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/10 "2015-08-03T13:18:27Z")

</div>

I am using 4.8.3 on Windows 10.

Here is what you suggested and resulted me in just 2 level instances.

[http://puu.sh/jnHAu/1d2fefd7db.png](http://puu.sh/jnHAu/1d2fefd7db.png)

Here is the blueprint I have used for the video mentioned before.

[http://puu.sh/jnHVK/a952eeb8ef.png](http://puu.sh/jnHVK/a952eeb8ef.png)

[http://puu.sh/jnHZC/5a81082c94.png](http://puu.sh/jnHZC/5a81082c94.png)

[http://puu.sh/jnI2b/c49eda0731.png](http://puu.sh/jnI2b/c49eda0731.png)

I have also modified the ForEachLoop node making the next loop start once the previous level instance is completely loaded.

[http://puu.sh/jnIf5/2a0b54d71b.png](http://puu.sh/jnIf5/2a0b54d71b.png)

And yes this is all in the level BP of the persistent level. The level stream blueprints are empty.

---

<div class="post-metadata">

**Author:** ![AnadinX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anadinx/32/1008648_2.png) [@AnadinX](https://forums.unrealengine.com/u/AnadinX)\
**Post date:** [August 4, 2015, 7:03am UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/11 "2015-08-04T07:03:36Z")

</div>

OK in your version of my BP, you need to hook up all of the SET nodes to the return value pin of the Create Instance, so they operate on the instance that you have just created

 ![52721-screenshot+2015-08-04+17.02.20.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/a/b0a7e7a7994ded562e4488412929d9c20bda5a3e.png)

I realise my first screenshot made that hard to see, sorry (also I made the same mistake when I first made it) 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ae774245](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ae774245](https://forums.unrealengine.com/u/anonymous_user_ae774245)\
**Post date:** [August 4, 2015, 10:27am UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/12 "2015-08-04T10:27:44Z")

</div>

What are you doing here does not make much sense. You are Loading a level and then creating another instance of the same level. What you should do is to create level instance with unique name, set level transform, and than load that instance using LoadStreamLevel with just created unique name for your instance.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ae774245](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ae774245](https://forums.unrealengine.com/u/anonymous_user_ae774245)\
**Post date:** [August 4, 2015, 10:30am UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/13 "2015-08-04T10:30:13Z")

</div>

Please do note, that Indirect Lightning Cache and Lightprobes do not work when your level is tranformed.

> **[Streaming levels with an offset.](https://forums.unrealengine.com/showthread.php?2712-Streaming-levels-with-an-offset)**
>
> Hey epic, I really like the streaming feature but I was wondering if it’s possible to stream them in at a different position than they are built? The reason I ask is because I want a randomly generated dungeon at run-time. I want to be able create...

---

<div class="post-metadata">

**Author:** ![AnadinX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anadinx/32/1008648_2.png) [@AnadinX](https://forums.unrealengine.com/u/AnadinX)\
**Post date:** [August 4, 2015, 11:12am UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/14 "2015-08-04T11:12:05Z")

</div>

Thats the point, its to instance the same ‘room’ multiple times without re-loading it. It could be done with BP’s per room but the OP wants to use levels.

---

<div class="post-metadata">

**Author:** ![HiIAmMoot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HiIAmMoot](https://forums.unrealengine.com/u/HiIAmMoot)\
**Post date:** [August 4, 2015, 12:18pm UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/15 "2015-08-04T12:18:39Z")

</div>

Yes, I will have to use full dynamic lighting, the first video showing how to make such random levels in the first place shows how to do it efficiently.

---

<div class="post-metadata">

**Author:** ![HiIAmMoot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HiIAmMoot](https://forums.unrealengine.com/u/HiIAmMoot)\
**Post date:** [August 4, 2015, 12:19pm UTC](https://forums.unrealengine.com/t/issue-with-loading-level-stream-instances-using-blueprints/327312/16 "2015-08-04T12:19:16Z")

</div>

Thanks, it worked!
