Level streaming is a good way to keep your game file size down. It allows you to combine two different levels by loading and unloading the levels instead of having the two levels in one. Let me explain how this works, and how to do this.
1. You will need to make sure your have two different levels already made in Unreal. You will also want to make a new level that is blank. This will be used to combine the two different levels. To add a new level simply click file near the top of the engine and click new level.
Make sure you choose empty level.
2. You will now need to click on window which is near the top like file. You want to then click on levels.
This window should now show up. To stream your level click levels near the top and click add existing. Find the levels where ever you put them.
3. Your levels should now be properly combined. You can now make adjustments to lighting, and make player starts. You will need to add a trigger box for the player to move between the levels. To find the box trigger look to the left of the screen you should be on modes and see basic, to the right of that you should see box trigger. Click and drag that into your level. Make sure you are doing this in the persistent level.
4. You will now need to make the trigger box actually do something. Near the top of the screen, click on blueprints and go to open level blueprint.
Once you are in the level blueprint print just copy what I have below and compile and save. You should now be able to move from one level to the next. If you go to a level and want to go back to the other level you will need another trigger box and make that allow you to go to the other level.
You now have successfully learned how to level stream. I hope this tutorial has been a big help.







No comments:
Post a Comment