Discord Help, How To Load A New Level And Navigate In VR With UE4

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments

Hey there!

In the future please do not submit multiple videos right alongside one another. This fills up the list of new submissions and drowns out other, legitimate content. Therefore it is considered a type of spam and as negatively impacting the community.

Should you wish to share multiple videos at once please submit a text post containing all links.

Alternatively you are welcome to submit them individually in a distributed way. By submitting one video every other day.

We do not intend to stifle valuable content but try to make sure no one makes this a worse space to share content for others. Especially if it appears to have been done unintentionally!

Cheers and have a nice day!

👍︎︎ 1 👤︎︎ u/Erasio 📅︎︎ Dec 28 2020 🗫︎ replies
Captions
hey everyone welcome back to another video so in this one we're going to look at level loading and how you can navigate after you've loaded a level so the first thing we need to do especially in vr is go to our blueprints folder and we're going to need to create a game mode so we're going to right click blueprint class it's like game mode bass and then in here i'm going to call it gm with a prefix and then we'll call this vr game mode and in here we're going to select our motion controller pawn so we're going to open this up and it says default pawn class let's select that and we're going to use motion controller pawn we want the one that looks like a little chess piece so we hit compile and save and now what we can do is we can actually delete our camera from the scene and we can bring in a player start drop it down slightly so it's in the floor about halfway if we press beyond the keyboard we can see that we've got a nav mesh which is what we're going to need and we're going to select our player start and we're going to set this to auto receive input set this to player zero and now we need to do in our world settings we need to set our game mode to the one that we just created so we're going to choose the drop down i'm going to choose game mode underscore vr game mode which is the one that we just created and now what we can do is if we go to the drop down vr preview is we can jump into the project and you see we're spawning we can teleport around and now what we need to do is set up a new level that we can actually jump into so i'm just going to maps folder go file i'm going to do new level and in this one i'm going to use the vr basics so we hit save and in here you can see it drops us right in and if i press play you can see i can't actually do anything i've got no teleportation nothing so we're going to fix this so same as normal first thing you need to do is check that you have a nav mesh component in the scene if we press play we don't so we're going to search nav mesh bounds volume bring this in put it intersecting through the floor and i'm going to scale it up just so we can see it now if i hit p we can actually see where we can move which is exactly what we're after and now we can actually use the player start in the scene to move this down into the floor and in the details panel we can set this to auto receive input we set this to player 0 go ahead save it's going to ask us to save our level let's call this we'll call this vr test we'll hit save and then should be good in world settings we want to make sure our game mode override is set to the same one so our gm vr game mode which we created so now if we jump into this scene we can do the same thing we can teleport and we can move around and now what we can do is in here if we create a little cube we can actually load the level so i'm going to get the name of our motion controller map i'm just going to do a ctrl c and then what i'm going to do is i'm going to create a blueprint and it's just going to act as our little level load so i'm going to blueprint class actor bp underscore load level and in here i'm just going to make a little cube which i can touch and it'll change our level so with that slightly we're going to scroll down component begin overlap drag off and do all button level and then paste it in there so we've got that i'm gonna drag it into the scene and move it to about here so now i hit play and you see we can't actually move around once we're in it so this is something we've got to fix so let's go to our map our motion control map hit save selected and we're going to bring in our blueprint actor that we created to load the level and we're going to change this one to our other level so i'm actually going to change this to a variable so we can access it in the level do level name click on valid save so set up as motion controller map which is not what we need here we need our vr test so i'm going to copy that and i'm going to paste it onto this one so now we can actually go back and forth but we need to fix our teleportation so now if we jump into our scene we can actually go between different levels but you can see we still can't teleport and this is what we need to fix what we can do is actually go to our raycast nav mesh by default and we're going to do force rebuild on load so we're going to enable force rebuild on load we're going to jump over to our test level raycast we're going to make sure force rebuild unload is also set up there so i've already done this let's save hit play now we can go over top up and we can now teleport between our scenes the way that we should be able to so so that's how we can actually travel between levels and set it up for a quick little test and just get the navigation working so it's all run so just use force rebuild unload don't forget to save all before you actually test it otherwise it might not actually work so just keep that in mind but that's pretty much it for now if there's anything you do want to see let me know down in the comments below it's really helpful and the light always works as well just for that youtube algorithm just being the pain that it is essentially but yeah we also have a discord down below which is linked in the description and we do have a patreon so if you want access to these files and you want to have a play around with some of the other stuff that we've done in the past then maybe head on over there and check it out it'd be really cool and until next time stay safe and i'll see you then bye
Info
Channel: GDXR
Views: 1,277
Rating: undefined out of 5
Keywords: Gamedev, Indie, Indie Gamedev, Indie game Devlog, Game Devlog, Game, Dev, XR, GameDevXR, Blueprints, Coding, Unreal, Engine, VirtualReality, VR, ExtendedReality, tutorial, how to, how, To, develop games, making a game, Dev Log, beginer, Unreal Engine 4, archviz, architecture tutorial, beginner tutorial, basics, blueprint tutorial, blender, beginner tutorial series, coding, devlog, Jonathan, Bardwell, Discord, Help, Level, Navigation, switching, vr
Id: P0cs1Qm1HQk
Channel Id: undefined
Length: 7min 0sec (420 seconds)
Published: Sun Dec 27 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.