 Welcome back. So in this video, we are going to go about the process of creating all the subfolders for this particular project setup tool. So let's jump back over into mono develop here. And what I want to do first thing is I just want to make sure that the root path was actually created. And you'll notice that this create directory actually returns a directory info type. And this will allow us to check to see if it exists or not. So if it exists, that means it created it. So I can create one of these directory info and we'll call this root info is equal to directory dot create directory. Alright, so we created it, we refreshed it. Then let's go and say if root info dot exists. Alright, then we can go and do something or we can just check to see if it if it doesn't exist, then let's just return and exit out of this little program. Else, let's go and do another custom method here. So I'm going to put it right around here. We're gonna say void create subfolders. All right. And what I want to do is pass in a root, so we'll say string root name, or root path. Alright, and what I'm going to do is say create subfolders and pass in our root path. Right, because we checked to make sure that it got created. So if it's there, then we can go and start putting other folders inside of it. Okay, so at this point, what I want to do is create another directory info. And this is going to store the current directory that we're on, right? So inside of unity, you know, we've got all these directories. And I need to know which folder I'm currently on basically, as we go through the each of the actual folders in here. So I'm just going to initialize it to null. And then I want to create another list of strings. Alright, and we'll call this folder names. And that's just going to be equal to a new empty list. Alright, so let's go and actually create our first subfolder. So I'm going to say root info equals directory dot create directory. And we want to give it a pass. So I'm going to give it the current root path. Right, because this current root path is the root of our whole project. Alright, so I'm going to say root path. And for this first one, what I want to do is add the art folder. I'm going to say art, oops. And we could just put art right there. Cool. So if that actually was created, so we'll say if root info dot exists again, then we can go and add some other folders inside of it. Because what I want to do is add a bunch of child folders to this sub folder right here. Alright, so let's just see if this is all working so far. Okay, so I'm going to save that we're going to go into unity over here already. And let's get rid of that shooter folder. We'll use that name again, though. We'll call that shooter. And it didn't actually go and create the subfolder, unfortunately. And I know why. It's actually very simple. We need to put the asset database refresh after everything. So refresh it and then close the window. So we'll say create subdirectories, give myself some information here. Don't have to do this, but it's good. Good habit to get into. Alright, so let's go and check that out. So I'm going to keep this open, wait for it to finish compiling. And voila, we now have the art folder underneath it. Okay, so what I need to do is I want to go and create a bunch of folders inside of that. And this is where our list comes into play because I'm going to run another function because I don't want to constantly be doing this over and over and over again, or constantly writing out directory dot create directory for all these folders. It's kind of a lot of code and really unnecessary. So what I'm going to do is a void create folder like so. And we will give it a string called a path. And we'll say list of strings. We'll say folders. Alright, so what I want to do is then say for each string folder, not gold folder and folders, we want to create a directory. So we're going to say directory dot create directory. And we're going to give it the path a path plus quotes forward slash and we'll say folder. Right, because this current the current string that we're on is the folder name. So that'll create that new folder. So all we need to do is just make sure our folder names is cleared. So say clear, and then let's say folder names dot add. And we'll do animation. So I have an animation folder because you always need one of those will have folder names add objects because we always have objects folder names dot add materials. And we always have prefabs for our art. So we'll put in a prefabs. Yeah, I mean, you could set this up to whatever you want, right? I'm just trying to show you how this all works. So if you see here in the code, these are the folders that I have found that I use quite often. Alright, so now what I'm going to do is say create folders. And that should actually be called create folder. But what I want to do is give it this particular path right here. So this is going to be the path. And we'll give it folder names. And that my friends should work. Just fine. To make this a little bit more readable, I'm going to refactor this and just call it get create folders. All right, that'll be way better. All right, so let's test that out. And go back into unity here. Say create project structure. And now we have all of our folders underneath. So basically, it's just the process of going through and, you know, setting it up the way that you want. So what I'm going to do is just copy all this stuff here. I don't think you guys want to watch me type that out again. That wouldn't be good. So I just need to make sure I put the correct names in here. And we'll give it repath. And we'll do folder names. Like so do the same thing. I'll leave the scenes out for now because we will want to see how to do that here in a second. So I want everything up to resources. And again, you don't necessarily need to have the resources folder in there. You can basically tailor your setup to however you want your particular projects to be set up. So I'll just paste those guys. And I could probably clean this up even more, but you know, it's working pretty pretty well for now. I don't run in any performance issues. It's pretty simple script, but I really just wanted to show how I went about doing all this stuff. And that's weird. I didn't actually create the, so we'll say create sub create folders. I see. All right. So we'll give it this path. And you don't really need that guy there, do you? The plus sign and folder names. Sweet. And that should do that. So let's try it out. All right. So I'm going to get rid of the previous one, rerun it. And voila. Really cool. All right. So I'm going to leave you guys there in this particular video. And in the next video, we're going to finish up this tool and just go and have it create some basic scenes for us to start working with. Thanks so much.