From the course: Unity 3D 2021 Essential Training

Importing assets into Unity - Unity Tutorial

From the course: Unity 3D 2021 Essential Training

Importing assets into Unity

- [Instructor] So now that we have a good idea of what are the best practices for imports, as well as what we can import, let's go ahead and import some items into our project. So I'm back into Unity here, and I'm going to show you several ways you can import FBX files, cause that's what we're going to do in this particular video. So you can go into the assets here and then click on import new asset like so, and then select the asset. That's the first way. Let's just minimize this for a second. The second way is to go into the exercise files and go into the files itself and simply drag and drop into your assets here. The third way is to go into the folder of your project and then import them into your assets folder as well. So you could literally bring the FBX files into here and then Unity is going to import it into your projects as well on the Unity editor. But most people are going to do what I'm just about to do. There are going to go into the actual exercise files, resources, and then grab the FBX file and drop them directly inside of Unity like that. That's what I do. But I wanted to show you the multiple ways you could do that. So, let's close this, let's bring this to full view and now we have our asset inside of Unity right here. So this is the 3D asset that I created, it's a kitchen. So let's drag it into our scene like so, and now you're going to have it inside of your IR key like the directional light. So the first thing I want to do is want to make sure that this is positioned at the zero origin. Like I said, in a previous video, I want to make sure that this is positioned properly. So I'm going to go into the inspector and go into the position here and do 0, 0, 0. So now making sure that the preview model is at the origin where I want it to be. So let's explore this particular 3D models that I just asked you to import, and this is what it looks like. This is a kitchen model. So you have sort of a second room right here, and then you can move into this kitchen and you have all these things here. So right now there's no materials into this scene and I'm going to show you how to add the materials in a future video. So this is basically a kitchen with a whole bunch of objects. So you have seats, you have an oven, you have a teapot right here, some cups, a sink and so on and so forth. Okay, so now that we have this, the first thing that I would do if I was you is to basically un-package this particular object 'cause right now you can delete anything inside of it. So if you want to really work in these little things here, they're all part of a prefab and we're going to explore what prefabs are very soon, but all of this is connected to the whole French country kitchen. So what you want to do is unpackage this. So let's go ahead and right-click, go there prefab and unpack completely. And now you can delete, remove any items inside of the scene and everything that since out of that scene is now going to be it's song. So the first thing that I would do is remove the nav and the cam, because we're going to create our own camera inside of that view, so let's delete that and there you go. You have now a 3D model that is ready to play or ready to work with inside of Unity.

Contents