# LevelのStreamingが上手く行われない

**URL:** <https://forums.unrealengine.com/t/level-streaming/447753>\
**Category:** Blueprint\
**Tags:** unreal-engine, stream, level, UE4, question, Blueprint\
**Created:** [April 24, 2019, 5:31am UTC](https://forums.unrealengine.com/t/level-streaming/447753 "2019-04-24T05:31:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![beio-wolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@beio-wolf](https://forums.unrealengine.com/u/beio-wolf)\
**Post date:** [April 24, 2019, 5:31am UTC](https://forums.unrealengine.com/t/level-streaming/447753/1 "2019-04-24T05:31:30Z")

</div>

タイトルレベルからステージ１レベルへのレベル切り替えで、  
添付の画像のように UnloadStreamLevel → LoadStreamLevel とノードを組んでいるのですが、  
レベルが切り替わりません。  
LoadStreamLevelのCompletedにつなげているPrintStringは表示されるので、  
処理はされていると思うのですが、どなたかわかる方、  
ご教授願えませんでしょうか。  
ちなみに、OpenLevelでは、問題なくレベル切り替えが出来ます。

 ![275051-streaminglevel.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/d/ddd5ed532df3c5eff72067ccb5c5e296b9ec9600.png)

---

<div class="post-metadata">

**Author:** ![T\_Sumisaki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@T\_Sumisaki](https://forums.unrealengine.com/u/T_Sumisaki)\
**Post date:** [April 24, 2019, 5:57am UTC](https://forums.unrealengine.com/t/level-streaming/447753/2 "2019-04-24T05:57:37Z")

</div>

ロードしたいレベルはPersistentLevelでしょうか？  
であれば、LevelStreamingをもってLevelを遷移することはできません

> **[Level Streaming Overview](https://docs.unrealengine.com/4.27/en-US/BuildingWorlds/LevelStreaming/Overview/)**
>
> Streaming Levels can be loaded with Level Streaming Volumes or programmatically with Blueprints or C++.

ロードしたいレベルがSubLevelであるならば、Levelアウトライナー上に対象のLevelが登録されている必要があります

動的にLevelStreamingを行いたい場合は、エンジン改造が必要とのことです

> **[\[UE4\] SubLevelを動的生成・削除する - Qiita](https://qiita.com/donbutsu17/items/e129d638285d4b77df30)**
>
> 1. はじめに
> 
> UE4のLevelはPersistentLevelとSubLevelの関係を持っており、起動中にPersistentLevelからSubLevelのLoad、Unloadを制御することができます。しかし、動的な生...

---

<div class="post-metadata">

**Author:** ![beio-wolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@beio-wolf](https://forums.unrealengine.com/u/beio-wolf)\
**Post date:** [April 24, 2019, 6:26am UTC](https://forums.unrealengine.com/t/level-streaming/447753/3 "2019-04-24T06:26:59Z")

</div>

ご教授ありがとうございます！  
ロードしたいレベルは、SubLevelで、  
添付画像のようにLevelアウトライナー上にも登録されております。  
動的に行いたいということはありません。

 ![275055-sublevel.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/7/5a7b08a1f609029d8c8b5227b6f74be98a137e77.jpeg)

---

<div class="post-metadata">

**Author:** ![T\_Sumisaki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@T\_Sumisaki](https://forums.unrealengine.com/u/T_Sumisaki)\
**Post date:** [April 24, 2019, 7:07am UTC](https://forums.unrealengine.com/t/level-streaming/447753/4 "2019-04-24T07:07:37Z")

</div>

では各SubLevelのDefaultLoadingMethodはどのように設定されているでしょうか？

LevelStreamingをするにはAlwaysLoadedではなくBlueprintである必要があったと記憶しております

---

<div class="post-metadata">

**Author:** ![beio-wolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@beio-wolf](https://forums.unrealengine.com/u/beio-wolf)\
**Post date:** [April 24, 2019, 7:54am UTC](https://forums.unrealengine.com/t/level-streaming/447753/5 "2019-04-24T07:54:35Z")

</div>

確認して見た所、サブレベルだと思っていたレベルがパーシスタントでした。  
恐らく、これが原因だと思います。パーシスタントレベルをサブレベルにするには、どうすれば宜しいでしょうか。

 ![275058-persistant.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/b/2eb2b89fcc0dde83f15d5e56ca8b13658bcf61ca.png)
