Skip to content

How to Setup a Virtual Human in Unity

aleedsmedvr edited this page Nov 20, 2025 · 7 revisions

Purpose

Setup a custom virtual human using an imported Character Creator asset in the SampleScene of the VHUnityHDRP or VHUnityURP project.

Requirements

Prerequisites

Steps

  1. Open the SampleScene of the respective project.

  2. Select the prefab of the imported CC character.

  3. Animator, set Controller to CCMaleAvatarController or CCFemaleAvatarController (refer to steps in the next section for "Override" controller) and set Avatar to CC_Default_AvatarAvatar

  4. Add the following components:

    • VH Character Profile (add voice(s), NonverbalBehaviorGeneratorSystemCCFemale or Male, and custom prompt)
    • Mecanim Character (set Starting Posture and Voice Name)
    • Gaze Controller_IK
    • Facial Animation Player_Animator (not currently working; however, set Animator to the current CC prefab)
    • Head Controller (set Neck Transform Name to current CC prefab transform, e.g. CC_Base_Head; Nod Amplifer as 10)
    • Blink Controller (set Eye Lid Controller Params values according to current CC, e.g., 045_blink_lf and 045_blink_rf)
    • Saccade Controller (set Eye Transform Names according to current CC, e.g., CC_Base_L_Eye and CC_Base_R_Eye; Mode -> Listen, Magnitude Scalar as 0.6; expand and ensure Eye Transform Name, Is Inverted -> Off)
    • Generic Male Adult Gesture Map
    • BML Event Handler (set Character Controller to MechanimManager (in scene) and Cutscene Prefab to Cutscene01; Trim BML Timing When Parsing -> Off)

    Optional:

    • Animator Messenger
    • Listening Controller (set Head Controller to current CC)
    • Mirroring Controller (set Character to current CC)
  5. Add SoundNode as child object to CC prefab.

    Note: Refer to values used for the component fields in the reference images that follow of an example CC virtual human.

  6. Ensure changes saved.

  7. Drag prefab into scene at approximate location of Civilian Kevin; disable Civilian Kevin object in scene.

  8. Play scene and test the virtual human's capabilities and dialogue.

Character Creator 5 VH Additional Steps

New CC5 characters may have additional brow, eye lash and facial hair child layers inside the FBX which include blend shapes but do not animate by default with the corresponding Animator Controller. Instead, an "Override" Animator Controller with specific assets must be setup for the character.

Unity_Ride_Visemes
  1. Top menu, select Ride > Visemes
  2. In the Visemes window, drag the desired CC5 asset prefab to the Character Root field (e.g. ccJohn)
  3. Ensure Output Folder path is correct to save generated assets
  4. Drag the associated base Animator Controller to the window (e.g. CCMaleAnimatorController)
  5. Click Generate All to generate all the face shapes specific to this character, using all the skinned mesh renderers present on this character (attachments, beards, etc.)
  6. Click Create Override Controller to generate the override mentioned above and assign it to the prefab.
Unity_Controller_Override

Reference Images

Refer to the components and their values in the reference images below for successful setup of an example CC virtual human prefab.

CC_VH_Components1 CC_VH_Components2 CC_VH_Components3

Clone this wiki locally