Getting Started

Setup

There are two ways to include an humanoid into a scene: starting with an avatar and starting with the Humanoid Control script.

Starting with an avatar

In this case you start by putting an avatar prefab into the scene. This avatar needs to fulfill the requirements of a Mecanim avatar. A couple of avatar prefabs are included in the package in the Characters/MakeHuman_simpleRig folder.

The next step is to attach the Humanoid Control script to the avatar. You can do this by selecting the Add Component button in the Inspector and selecting the Humanoid Control script.

Starting with the Humanoid Control script

In this case we start with an Empty GameObject. We will then add the Humanoid Control script to the object by selecting the Add Component button in the Inspector and selecting the Humanoid Control script.

You will see that the script could not detect a suitable avatar because there isn’t an avatar attached yet. We can now select which avatar we want to use for the scene by selecting the Avatar Prefab parameter (select the small bullet at the right side of the text box). You can then select your favorite avatar. With a single click you can preview a avatar. Only GameObject which are actually avatars can be selected and previewed here.

The avatar will be attached as a child of the GameObject with the Humanoid Control script in this case.