Level Swapping in Unreal Engine 5 - Move Assets Between Levels AND Toggle Visibility in Sequencer

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so what do I mean by level swapping well we're actually going to address two issues one of these came up from a question in the comments about how to move objects between levels so starting here with just the basic starter map from the starter content you'll notice the map name up here is minimal default or level name if you haven't seen my video on the difference between levels Maps sub levels and those sorts of things I recommend you watch that before watching this one it'll maybe help it make a little more sense so this is actually kind of an answer to a question that came up from someone watching that video but anyway let's look at what we have here we have the persistent level which if I hover my mouse says it's the minimal default which means more or less the open level up here open level and let's say I want to separate these chairs into their own level I could go to the file menu make a new empty level but when you have the levels tab open here which I got to by going to window levels you can actually actually create a new level from within this tab so go to create new and I'm going to go with empty I want nothing in it at all and create it asks me where I want to save this new level I'm going to put it with my other ones in the starter content and I'm going to call this chairs and you'll see now it created this level chairs and put it underneath the persistent level which means in my terminology it's a sub level but technically it is a level no different than this minimal default level right if I go into the maps folder I have starter map chairs minimal default and they're all basically levels the only thing that makes this chairs level any different than the persistent level is the chairs is not the one that's open it is not the persistent level so the chairs level does exist if I double click to load it to make it the persistent level just to prove the point here you'll see chairs is open there is nothing in it this is the name of my level chairs it is currently the persistent level all right so just to refresh everyone on that let's go back and open minimal default so here's my two chairs here's my minimal default back open everything currently belongs to the persistent level there's nothing in the chairs level also you'll notice over here in the outliner if you don't see the levels column right click next to type and select level there is this levels column that tells you what level something belongs to so let's select a chair and if I want the chair to move into the chairs level with it selected I want to right click on this chairs level and then choose move selected actors to level once I've done that you'll see that chair 2 now belongs to the chairs level I'm going to do that with the other chair it is selected I want to right click on the target level where I want it to go move selected actors to level you don't need to do this one at a time I'm just doing it one at a time to show you the process and now the chairs level contains the two chairs and they no longer exist in the persistent level let's see what that looks like if I hide the chairs level the chairs go away because I'm hiding the chairs level and the persistent level no longer contains the chairs turn that back on so that's how you can swap items from one level to another now another thing to think about is if for example I have the persistent level checked and I select the table the table currently is in the minimal default level so if I right click on it move selected actors to level is grayed out because it's already in this exact level so there's nowhere to move it but if I select the chairs level right click move selected actors to level now the table is going to jump into that same chairs level and you'll see that here under the levels tab now the second thing we can look at again just to make sure everybody's totally clear on this I'm going to go and create a another new level and I'm going to make another empty level I'm going to call it table I'm going to put the table in its own level and the table is selected I'm going to select table right click move selected actors to level now the table is in the table level can I hide that one hide that one if I want I can even add the persistent level and you might wonder where did the chair and table go because I hid the persistent level they're still there it's just when you hide the persistent level all the lighting goes away with it as well so don't be scared it's there now another thing to note just to make sure everybody's clear on this is when you have multiple levels here in the levels tab only one of them is considered current and the current one is the one that's bold so right now table is bold that means it's the current level so if I grab another object for example a another well let's say a bush and I bring a bush into the world here what level did it just land in it landed in the table level because that is the one that is current so definition current means it's bold it's active technically they're all kind of active but this is the one that is the target for anything that involves being a current level so now if I hide the table level the table and the bush go away let's make the chairs active if I right click I can choose make current or it shows you can also hit enter or you can just double click now if I deselect you'll see chairs is bold if I bring in another bush it belongs to the chairs level let's push that back a bit so now when I hide the chairs level the bush hides as well because it is a part of that level let's say now you all know how to do this now if I select this bush and I want it to go with the table I'm going to right click table move selected actors to level and now that second bush is part of the table level and it hides when I hide the table level now while we're talking about the idea of swapping levels maybe you thought I meant in the sequencer so let's look at how you would do that in the sequencer I'm just going to go the top of the hierarchy here add a level sequence and just give it default name and so here in your sequencer if you want to hide levels and enable levels you just need to set that up here in the sequencer so I'm going to go to the added track and choose level visibility the level visibility is really just a toggle so I want to add a hidden tag here and you'll see it says hidden I'm going to drag the table into it and you see the table goes hidden but what if I want that to happen at say frame 45 you just drag that to frame 45 and prior to that your level is visible and then when you hit here it goes to Invisible and you can do the same thing the opposite way you can make a visible track and I can switch that to something coming on for example the chairs maybe I want them to be visible when it hits this trigger but you might say wait the chairs are already visible so if you want you can actually turn those off by default and then when it hits that in the timeline notice see what What's Happening Here is when you pass that boundary here it turns on the visibility of the level so again if you thought I was going to talk about how to swap levels while you're in the sequencer in a level sequence then that is your answer you add a level visibility track and then turn on and off your level visibility and just drag which level you want active into the little toggle and most importantly of all you need to take a break and go watch the latest stop-motion video from my son Dexter subscribe like spread the news about these amazing videos I'd really appreciate it hopefully that answers questions concerning levels and visibility and level swapping stay tuned for more educational content
Info
Channel: 3D Education with JC
Views: 20,693
Rating: undefined out of 5
Keywords:
Id: dzfriarbFcg
Channel Id: undefined
Length: 8min 28sec (508 seconds)
Published: Tue Nov 08 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.