-
Notifications
You must be signed in to change notification settings - Fork 1
Importing models from Blender into Unity
##Can't drag .blend files into your project? Models looking derpy? Then this guide is for YOU! There are some things you should know to get that pretty model into Unity without problems.
###This is NOT a guide on how to use Blender! They have a pretty good documentation site for that.
###COMMON MISTAKES
#####1. Trying to drag .blend files directly into a scene You can't do this. It won't work no matter how many times you try. Instead, open your model in Blender and go to File > Export... > FBX. Save the exported .fbx file into your unity Assets folder. Now, you can drag it in.
#####2. Making a model with walls of no thickness The seemingly solid objects you make in Blender aren't actually solid at all. The walls by default have a thickness of 0, meaning they won't be rendered properly in Unity. To solve this, add a Solidify modifier in the Modifiers menu. (Look it up if you don't know what a modifier is.) Save and re-export (explained above). Your model is now properly rendered in Unity!
#####3. Adding textures in Unity Adding textures on Blender objects from Unity can get very glitchy. To get around this, add textures directly onto the object in Blender.
- On the top bar in Blender, there should be a icon with panels in it next to the word "Default". Click on this and select "Compositing". You are now in compositing mode!
- Select a face of your model that you want to add texture to. (Hotkey F in edit mode is useful, look it up.)
- Next to the mode selector on the bottom right, there should be a white sphere. Click on it and change it to "Texture".
- On the bottom right where your model is shown, click Mesh > UV Unwrap > Unwrap. The bottom left should now have a box outlining where you can add your texture.
- On the bottom left, click Image > Open Image. Select the image file you want to open. It should appear on the bottom left panel.
- Using the bottom left panel, resize the image however you want until you are happy with how it looks on the face (bottom right).
- Select another face to add the texture. Repeat this process until all the faces you want textures on are covered.
- Save and export. Your textures should appear on Unity if you drag the object in now!