How to setup a Third Person Controller in Unity (in less than 5 minutes !)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone and welcome to cut friend in this short unity tutorial i will show you how to set up a third person controller in unity including the character and camera movement with the 3d model of your choice and all of that will be ready in less than 5 minutes because we'll be using a free starter asset made by unity let's go first things first open unity you will need to use the 2020.3 version or greater to follow this tutorial once unity is opened head up to the first link in the description which is the asset store page of the package that we'll be using today click on the button add to my asset the website will then ask you to log into your account or to create one if you don't already have one then once logged click on the open in unity button which replaced the previous one the website will then ask the permission to open unity make sure to accept by clicking the open unity editor button unity will automatically open the package manager window on the asset that we'll need click on the bottom right import button which will open a new window on which you can again just click import after a few seconds the importation of the asset is finished and this software will ask you to reboot unity click on yes once unity has reboot close the package manager window and head up to starter assets third person controller scenes and double click on playground with only those few preview steps we can already press play and enjoy a nice animated third person controller with movements and camera system which is great but what we want to do now is to replace the default 3d character model by another one that we have created or downloaded somewhere else for this video i'll be using a free 3d model from mixamo this website owned by adobe offers hundreds of free animations and rigged characters if you don't know this site already i'll suggest that you look into it real fast but i will probably talk about mixamo a bit more in one of my next video so make sure you subscribe to the channel anyway just know that you can basically use any humanoid model as long as it is rigged which means that the model's skeleton is configured to be animated most of the 3d characters that you'll find online and on the asset store are rigged so you should be okay once your 3d model is downloaded mine is a fbx file you can directly drag and drop it into unity make the most characters need a few tricks to work properly in unity but i will be skipping this step because it is not relevant for other 3d models now that our character file is in unity we can right click on our player armature in the hierarchy head up to the prefab submenu and choose unpack completely this will allow us to edit the object and his children you can now open player armature and geometry and now delete the amateur mesh object once deleted you can drag and drop your own character into geometry now this is optional but if your character has an animator component you can remove it we will not be using it anyway then add up to the player armature again and in the animator component we'll be changing the avatar from amateur avatar to the avatar of the character that you just imported mine is called prefab avatar but it has probably another name in your own project and that's it press play and enjoy your customized third person controller it should be perfect for any kind of third-person game the system used by the asset is pretty simple and can be improved easily if you ever notice a bit of jitter or jerky movement on your camera it is most likely because of cine machine which is some sort of camera framework used by the asset you can simply fix it by selecting player follow camera in the hierarchy and you should be good to go after some investigations i've noticed that this bug is only present in the unity editor so it won't bother you again in a standalone or a mobile build and we've reached the end of the video i hope that you've enjoyed it this youtube channel is brand new and i plan to make a lot more tutorials and videos on unity in the future so make sure to subscribe if you're into that a small like on this video is also very much appreciated my english and more specifically my accent are a bit rusty and i definitely need some practice but i think this youtube channel will be perfect for that this was godfriend see you guys very soon cheers
Info
Channel: CodeFriend
Views: 31,253
Rating: undefined out of 5
Keywords: CodeFriend, Unity tutorial, programming tutorial, create a game, unity game maker, setup third person, setup tps controller unity, tps controller unity
Id: _Er4eqhhDTo
Channel Id: undefined
Length: 5min 34sec (334 seconds)
Published: Sat Sep 25 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.