Connecting a 3D Model to Your Player Object Via Filebase!
Objective: Understanding the process of connecting a model to an object.
If you have followed along with my tutorials you’ll know we have been using a capsule to represent our player. In this tutorial we are going to import a 3D model from Filebase and attach it to the player.
Find a model that you like, I’m using a 3D model I found of a skeleton, and Import it to your game.
This will open the Import Unity Package window, make sure everything is selected and press import in the bottom right.
When the install is finished exit the Filebase window. Since we have already spent so much time setting up the character controller with the capsule we can keep it. Remove the MeshRenderer.
Next, we need to child an empty object to the player capsule. I renamed mine to model.
Grab the prefab from the project view and drop it into the empty “model” object under the player object.
If your model is Pink that is because we are using the Universal Render Pipeline(URP) and to fix this navigate to Edit > Universal Render Pipeline > Upgrade Project Materials to UniversalRP Materials.
This will update the textures on your model. To finish this off we need to have the collider overlay the model accurately. Select the Player object to see the outline of the collider and use the inspector to manipulate the collider to be a snug fit, paying special attention to the feet of the model.
You will want to play around with the collider to make sure you model looks as though it is standing on the floor and “hits” walls. This is all there is to importing character models from Filebase into your game! I’ll see you in the next tutorial!