Unity 5 - Importing Animations From Blender / Blender to Unity

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone and welcome to the tutorial number 17 of the lost and SE series and today we are going to see a proper way to import animations into Unity from blender first thing I'm going to do is quickly create a Unity project like this then create a resources folder and another one inside called characters now back to blender what we want to do is Select our octopus or your animated character and make sure you only select your character and that the aeter is in object mode now press contrl C to make a copy of it what I like to do to make sure all the transforms are imported correctly is create a new blender file press to * a and erase everything now we hit control V to paste our animated character and then press the dot key from the nump to find and focus what we have pasted now what we need is to Center our octopus the closest possible to the origin of this blender file and now as you can see everything is there inclusive the animation shape Keys actions drivers and armatur everything works fine now what I'm going to do is not obligatory you don't have to do it but it may help some people fix problems with location rotation and scale when importing to Unity so let's enter in edit mode of the octopus select everything with a press shift s and select cursor to selected now go back to object mode and press shift contrl alt C to select origin to 3D cursor select the Armature and now we only need to press shift Control Alt C and again select origin to 3D cursor now the origin of the arm and the object are the same just one more f thing that helps avoiding problems is selecting the octopus and let's apply location rotation and scale by pressing control a then do the same thing in object mode with the Armature but be careful if applying scale or rotation or location moves any bone away just don't apply it now the idea is that we save this blend file directly the characters folded we created inside the resources fold of our Unity project and as soon as we have saved it and move on to Unity Unity may take a few seconds to impart it but after that we have access to our octopus the respective materials which in this case are nothing special and the animations we created in actions editor and this way any further animation that we will create or any change we do as as soon as you save it in blender it will automatically update in unity I think this is a better way than fbx but that's up to you and here you can see all the animations and now we can erase these default animations and the others that we don't want by pressing the minus sign now before importing our animation to our scene we just need one more thing which is the animation controller that will manage every animation we have now now we just need to check Loop and don't forget to press apply every time you change something here and by pressing with the right Mouse we can go to the create and select animator controller and rename it to something like octopus animation controller now if you press two times on this animation controller Unity opens the animator window and by default it looks like this we have an entry node and an any state node we can press the right click Mouse and select create empty State and now as you can see Unity has already connected to the entry note you can call it octopus walking cycle and if you press here in a motion the animation of our characters will appear and you can select the octopus walking cycle now we can drag and drop the octopus to our scene and in the inspector tab in the animator let's select for controller octopus animation controller and now when we press play since the entry node is connected to the walking cycle our octopus will start walking now if you want to make your animation faster or slower you can simply go to the animator window and change the speed value now what if we want to control the animations by Script well in the next tutorial I'm going to show you how easy is done and you can find it in the description or in my channel I will show you how to fade animations and how to change them with input of our keyboard so please subscribe for Weekly game development videos and thank you for watching see you in the next tutorial
Info
Channel: Gabriel Aguiar Prod.
Views: 238,799
Rating: undefined out of 5
Keywords: low poly scenario, blender animation, blender animating, weight paints in blender, character animation in blender, blender character animation, animating in blender, modeling octopus, animating octopus, walking cycle blender, blender to unity, blender animation to unity, import animation to unity, octopus animation, unity, importing animations from blender to unity, import animations to unity, blender import to unity, import to unity, animations to unity, unity tutorial
Id: 3CSUxATQVLw
Channel Id: undefined
Length: 5min 27sec (327 seconds)
Published: Mon Feb 13 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.