UMA 3¶
Driving a UMA 3 character's face with FaceCue.
The FaceCue UMA Bridge lets FaceCue drive a UMA character's face as it drives any other character's: speech, expressions, the eyes, and the head that moves with speech. It changes nothing on the character as saved.
What You Need¶
- UMA 3.0.5 or later, from the Unity Asset Store or UMA's releases on GitHub. UMA 3 needs Unity 6.3 or later.
- FaceCue's UMA 3 integration, which turns itself on once UMA 3 is in the project.
FaceCue has no integration for UMA 2.
UMA 3.0 and UMA 3.1¶
Both work with the bridge and the wizard. They differ in what UMA gives the face to work with.
| UMA | Where to get it | Speech | While the game runs |
|---|---|---|---|
| 3.0.5 | the Asset Store, or GitHub | Composed | the bridge turns on Override Mecanim Neck and Override Mecanim Head |
| 3.1.5 and later | GitHub | Composed or Direct | nothing changes on the character |
The Speech column follows the races' expressions. UMA 3.0's races have no viseme expressions, so the wizard builds speech from UMA's mouth expressions (Composed). From UMA 3.1 the races carry visemes, and Direct can drive them.
The two overrides are what UMA 3.0 needs to move the whole mouth. Its Dynamic Expression Player moves the jaw and tongue only with them on, so the bridge turns them on while the game runs and puts them back as they were when it stops. The head and neck keep their animation unless one of UMA's head or neck expressions is driven.
Setting Up¶
- Install UMA 3. Import UMA's package into your project, from the Asset Store or from GitHub.
- Check the integration is on. Open the FaceCue Hub, , and find the UMA 3 row under Integrations. FaceCue looks for UMA 3 when the editor starts, so if you installed it with the editor open, use . The project recompiles once. See Integrations.
- Open the character in a scene or in Prefab Mode. It needs UMA's Dynamic Character Avatar. A UMA prefab is set up from Prefab Mode, not from the Project window.
- Run the OneClick wizard on it. The wizard recognises it as UMA 3 and asks for the bridge first. Press Add UMA Bridge, and the wizard carries on as for any character: speech, the mouth's response to loudness, expressions, the eyes and prosody. What it sets up is on The Families.
The Bridge¶
The bridge goes on the object that carries the Dynamic Character Avatar, and it adds UMA's Dynamic Expression Player there if the object has none. The wizard puts it there for you. To add it by hand, use .
It works from the character's UMA expression group, the set of expressions UMA can pose on that face: the race's own group, or the one set in the Dynamic Expression Player's Expression Group Override. Its inspector shows the Expression Group it found and how many Face Shapes FaceCue can drive.
While the bridge is on, the character carries a child named FaceCue UMA Face. The bridge makes it each time it starts and never saves it with the scene.
The face works in the Face Rig Designer like any other: a preview poses the real UMA face, so you can fine-tune the recipes there.
Character¶
The bridge works for the FaceCue Brain on its own object or the nearest one above it, which is how the wizard sets a character up. If FaceCue sits somewhere else, beside the UMA avatar for example, assign that brain as the bridge's Character.
FaceCue only finds the face when the UMA character sits under that brain's Character Root. When it doesn't, the bridge's inspector says so, and its Fix sets the brain's Character Root to the bridge's object, which holds the whole UMA character.
Eyes¶
Eyes decides who drives the eyes: the blinks, where they look, and the head that turns with them.
- Auto, the default, picks FaceCue when the character has FaceCue's Eyes, and UMA otherwise.
- FaceCue gives the eyes to FaceCue's Eyes, and switches UMA's own blinking, eye movement and look-at off while the game runs.
- UMA leaves the eyes to UMA, and switches off FaceCue's Eyes and the head movement that follows speech.
The rest of the face is FaceCue's either way. Changed while the game runs, the eyes are handed over at once.
While the Game Runs¶
FaceCue keeps driving the face through what UMA does to the character: a new recipe, a change of DNA or race, a change of clothes, another expression group, a character spawned from a prefab or reused from a pool, a copy made while the game runs, and a new scene loading.
UMA's crowd spawner works the same way, with one limit that is UMA's own. On UMA 3.1, its Use Completed NPC Builds option copies a finished character instead of building each one, but it does not copy a character with a Dynamic Expression Player. A FaceCue character has one, so it is built as usual rather than copied. UMA's documentation lists this limit, and it holds with or without FaceCue.
A Line Needs the UMA Face Built First¶
FaceCue drives the face the bridge makes from the UMA character, so start a character's first line once UMA has built that face, as How to Wait for It shows. Most characters have their face as soon as they appear. The ones below get it later.
Characters UMA Always Builds Later¶
Some characters are built after FaceCue has started, on every version of UMA: a race that loads through Addressables, or a character UMA's crowd spawner makes. Their face arrives when UMA finishes the build.
Characters UMA 3.0 Builds a Frame Late¶
On UMA 3.0, a character copied or spawned while the game runs gets its face at the end of the frame it appears in, and a character placed in a scene should do the same in the frame its scene loads. On UMA 3.1 the face is there at once.
How to Wait for It¶
UMA raises Character Created on the Dynamic Character Avatar once it has built the character, and Character Updated after every rebuild. For a character you spawn, play its first line from there, the usual way, on the Audio Source the character follows (see Playing It Back):
using UMA;
using UMA.CharacterSystem;
using UnityEngine;
public class SpeakOnceBuilt : MonoBehaviour
{
[SerializeField] private DynamicCharacterAvatar avatar;
[SerializeField] private AudioSource voice;
[SerializeField] private AudioClip line;
private void OnEnable() => avatar.OnCharacterCreated += OnBuilt;
private void OnDisable() => avatar.OnCharacterCreated -= OnBuilt;
private void OnBuilt(UMAData built)
{
voice.clip = line;
voice.Play();
}
}
Removing UMA 3¶
If you delete UMA 3 from the project, FaceCue turns the integration off by itself, so the project keeps compiling, and says so in the Console with UMA 3 Integration Turned Off. If you add UMA 3 back, use to turn the integration on again.
Troubleshooting¶
The UMA 3 Row Says Unavailable¶
FaceCue did not find UMA 3 in the project. Install UMA 3.0.5 or later, then use . UMA 2 does not count.
The Bridge Says the UMA 3 Integration Is Off¶
The same cause. Until FaceCue finds UMA 3, the bridge does nothing and its inspector says so.
The Wizard Says the Bridge Is Switched Off¶
The bridge component is disabled on the character. Enable it, and the wizard carries on.
The Wizard Says the Bridge Found No Expression Group¶
The bridge needs an expression group to make the face from, and the character's race has none. Give the race an expression group, or set Expression Group Override on the character's Dynamic Expression Player.
The Face Stays Still in the First Play on UMA 3.0.5¶
With UMA 3.0.5, and Unity set to skip the domain reload when entering Play Mode (), a character the editor has just generated can keep a still face for the whole of the next play, UMA's own expressions included. This comes from UMA 3.0.5 and does not happen on UMA 3.1. Press Play again, let Unity reload the domain when entering Play Mode, or use UMA 3.1.
A Character Saved with UMA's Prefab Maker Doesn't Move Its Face¶
UMA's Prefab Maker turns a character into a plain prefab, without UMA's character data, and UMA's own expressions don't run on it. The bridge drives the face through those expressions, so the line plays and the face stays still. To use FaceCue on a UMA character, keep it a UMA character, with its Dynamic Character Avatar.
