Version: 2017.4
Creating the Avatar
Muscle setup

Configuring the Avatar

With rare exceptions, humanoid models have the same basic structure, representing the major articulated parts of the body; the head and limbs. The first step to using Unity’s humanoid animation features is to set up the Avatar. This represents the mapping between the simplified humanoid bone structure understood by Unity and the actual bones present in the skeleton.

Since the Avatar is such an important aspect of the animation system, it is important that it is configured properly for your model. So, whether or not the automatic Avatar creation succeeds, you should always go into the Configure Avatar mode to check that your Avatar is valid and properly set up. It is important that your character’s bone structure matches Unity’s avatar predefined bone structure and that the model is in T-pose.

If the automatic Avatar creation fails, you will see a cross next to the Configure button.

If it succeeds, you will see a check/tick mark:

Here, success simply means all of the required bones have been matched but for better results, you might want to match the optional bones as well and get the model into a proper T-pose.

When you go to the Configure … menu, the editor will ask you to save your scene. The reason for this is that in Configure mode, the Scene View is used to display bone, muscle and animation information for the selected model alone, without displaying the rest of the scene.

Once you have saved the scene, you will see a new Avatar Configuration inspector, with a bone mapping.

The inspector shows which of the bones are required and which are optional - the optional ones can have their movements interpolated automatically. For Unity to produce a valid match, your skeleton needs to have at least the required bones in place. In order to improve your chances for finding a match to the Avatar, name your bones in a way that reflects the body parts they represent (names like “LeftArm”, “RightForearm” are suitable here).

If the model does NOT yield a valid match, you can manually follow a similar process to the one used internally by Unity:-

  1. Sample Bind-pose (try to get the model closer to the pose with which it was modelled, a sensible initial pose)
  2. Automap (create a bone-mapping from an initial pose)
  3. Enforce T-pose (force the model closer to T-pose, which is the default pose required by Unity animations)

If the auto-mapping (Mapping->Automap) fails completely or partially, you can assign bones by either draging them from the Scene or from the Hierarchy. If Unity thinks a bone fits, it will show up as green in the Avatar Inspector, otherwise it shows up in red.

Finally, if the bone assignment is correct, but the character is not in the correct pose, you will see the message “Character not in T-Pose”. You can try to fix that with Enforce T-Pose or rotate the remaining bones into T-pose.

Avatar Body Masks

有时,将动画限制为特定的身体部位会很有用。例如,在一个行走动画中,角色可能会挥动他们的手臂,但如果他们拿起火炬,他们应该将火炬举起来投光。您可以使用 Avatar 身体遮罩 (Avatar Body Mask) 来指定应将动画限制在角色的哪些部位。请参阅有关 Avatar 遮罩的文档以了解更多详细信息。

Creating the Avatar
Muscle setup
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961