[No coding] Humanoid 3D Models

Information
Step 1
In this lesson we are going to learn different kinds of gameplay and how to Edit Humanoid 3D models!
Ezgif.com optimize %285%29
Step 2
Start a new project or a new scene if you already have Unity opened.
Temp1544837608
Step 3
Import the Standard Assets pack (227mb)
Temp1544837667
Step 4
Click and drag the ThirdPersonController prefab in (Assets\Standard Assets\Characters\ThirdPersonCharacter\Prefabs)
Step 5
With the ThirdPersonController selected in the Hierarchy, change the Tag to "Player"
Step 6
We don't need the Main Camera anymore, so let's delete it in the Hierarchy.
Step 7
Now we want the MultipurposeCameraRig prefab, click&drag this into Hierarchy.From (Assets\StandardAssets\Camera\Prefabs)

You can find this in:

Assets\Standard Assets\Characters\ThirdPersonCharacter\Prefabs

NOTE: Do NOT use the Ethan model in the Model folder!! It won't have the third person scripts.

Check Your Work
Step 8
Click play and see if you can move with the WASD or Arrow keys!
Step 9
Let's see how 3D Humanoid Models work... Expand all of Ethan's Skeleton child objects
Step 10
Just like humans, every bone has small bones added to it or it's part of a parent bone.

We could select the head to turn his head, selecting his neck would both his shoulders and his head.

Challenge
Step 11
Can you make him do a Thumbs up?
Temp1544845680
Step 12
Let's look further into his 3D model structure...
Temp1544846472

Select his model in: Assets\Standard Assets\Characters\ThirdPersonCharacter\Models

Step 13
With the Ethan model selected, click Configure...
Temp1544846622 Temp1544846683

If this window pops up, save your scene. Since we are completely loading a new window.

Check Your Work
Step 14
Your screen should now look like this.
Temp1544846748
Step 15
Selecting on any of the bones will select it on the model and Mapping display
Step 16
Click done whenever you're finished exploring how Humanoid models work.
Temp1544846935
Step 17
Now let's try to replace the Ethan model with another model!
Step 18
Once you downloaded your model, Create a new folder in your project panel. Name it as the name of your model.
Temp1544848454
Step 19
Important: Select your model and all of its textures into your new folder!
Check Your Work
Step 20
You should have something similar to this file structure
Temp1544848719

Note: I chose to use the Appearance Miku model from the author: MAMAMA
Credits and ownership goes to MAMAMA:
* https://mikumikudance.fandom.com/wiki/Mamama

Step 21
Click and drag your new model into the Scene/Hierarchy!
Step 22
Uh oh, sometimes the scaling of the model is different, if it's too big or too small, make sure to size it properly.
Temp1544856964

Try to get your 3D model to be about the same height as the Ethan model.

Information
Step 23
Optional: If your character looks too dim or doesn't look right in the current settings, change it's shaders.
Temp1544849484
Information
Step 24
IMPORTANT: It's also important to know that Every 3D humanoid model has a skeleton and a mesh.
Temp1544858057

The Skeleton is usually called the Skeleton or the "Armature"
And the Mesh usually has the word "Body" in it.

What the Mesh does: Textures or "Colors" the model's body.

What the Armature does: All the bones of the body, used to animation walking, attacking, running, etc.

Planning
Step 25
Now we want to control the new model.. So let's compare. What does the Ethan model have that the other one does not?
Temp1544857541

The new models needs:

  • Change the Tag to "Player"
  • Animation Controller should be set to "ThirdPersonAnimatorController"
  • Needs a Rigidbody
  • Needs a capsule collider
  • Needs a Third Person User Control (Script)
  • Needs a Third Person Character (Script)
Step 26
So let's give our new model the things that it needs!
  • Change Tag to "Player"
  • Change animation controller to "ThirdPersonAnimatorController"
  • Add a Rigidbody
  • Add a capsule collider
  • Add a Third Person User Control (Script)
  • Add a Third Person Character (Script)
Step 27
Lastly Change the Capsule collider values to these new values
Temp1544858824
Step 28
Now that we have our new model all set up, we don't need the old one. Delete the ThirdPerson model
Temp1544859653
Check Your Work
Step 29
Alright! We have everything all set up, let's hit play and see what happens. Uh oh.... Where's our animations?
Step 30
We need to rig our character as a humanoid model. Right now it's set as Generic, so it doesn't read our Armature bones.
  • Select your 3D model in the Hierarchy
  • Click "Select"
  • Make sure "Rig" tab is selected
  • Change animation type to Humanoid
  • Click Configure (Save your scene if it asks)
Step 31
On this scene, double check to make sure there are no red areas on the body. And then check if they have a "Chest"
Temp1544860947

Sometimes the body is all green even if there is no Chest". The upper chest is optional in our case, so we don't need it.

Step 32
If everything looks good, click Done.
Temp1544860983
Check Your Work
Step 33
Click play again and see if it works for you!

If it doesn't work for you, look at the step below.

Planning
Step 34
Depending on the 3D model, your model might be stuck in the floor or above the floor like this.
Step 35
If you look closely, the capsule collider is not even close to the floor! It thinks we're in the air right now.
Temp1544862043

Change the center to make it closer to the ground but not touching the ground.

Also the capsule collider should be big enough to cover the entire 3D model, in this picture it's smaller than her legs.

Temp1544862426

A correct capsule collider for a player object should look similar to this one.

Check Your Work
Step 36
Test out your model again to see if it works this time! If not, keep changing the capsule collider until it does.
Challenge
Step 37
Customize the Armature by putting random cubes with your name on them! Make sure it stays on the model in Play Mode.
Temp1544863489 Temp1544863505 Temp1544863857

You can also add other objects besides cubes to your model! Just make sure you put them at the right bone structure.

Step 39
You are finished with this lesson! Click submit and go onto the next lesson on More Components!
[No coding] Humanoid 3D Models Info

Account

MVCode Clubs

Created By

Nepgear tina (instructor)

Course:

[No coding] Unity Intermediate

Access Level

premium

For Teachers and Schools

Teach coding to your students with MVCode Teach

MVCode offers an integrated product designed to teach coding to students.

Learn more about MVCode Teach