Working with UMA characters » History » Version 13
Hannes Vilhjálmsson, 2021-11-05 09:32
1 | 1 | Sabina Huskic | h1. Working with UMA characters |
---|---|---|---|
2 | |||
3 | 3 | Sabina Huskic | h2. Starting up |
4 | 1 | Sabina Huskic | |
5 | 13 | Hannes Vilhjálmsson | You can find the "UMA Character Asset":https://assetstore.unity.com/packages/3d/characters/uma-2-unity-multipurpose-avatar-35611 in the Store. Download it for free and import it into your project. |
6 | 1 | Sabina Huskic | |
7 | 3 | Sabina Huskic | To get your first character up and running find the prefab called 'UMA_DCS' (UMA\Getting Started). Drag and drop the object into the scene. This generator keeps track of everything, lets us swap clothing and everything else. Every scene that contains an UMA character must also contain this prefab. |
8 | |||
9 | To create your UMA character, create an empty object to carry it. Add a component to your object called Dynamic Character Avatar' To generate your character you have to pick a race for your character. In the drop down menu you can find the base recipes for male and female characters. After you pick your race you can press play and your character will be generated. |
||
10 | |||
11 | (To see what is in these recipes you can go to UMA\Content\UMA_Core\HumanMale\Recipes\BaseRecipes. Normally you do not have to do anything in this folder unless you wish to create your own customised races.) |
||
12 | |||
13 | 4 | Sabina Huskic | In play mode you can play with your character in the new component called UMA Data (script) and change the shape of pretty much every body part. |
14 | 3 | Sabina Huskic | |
15 | 9 | Hannes Vilhjálmsson | h2. Different Looking Characters |
16 | 8 | Hannes Vilhjálmsson | |
17 | 9 | Hannes Vilhjálmsson | You can download other "race" packs for the UMA system for different looking characters, including the free "o3n Male and Female UMA Races":https://assetstore.unity.com/packages/3d/characters/humanoids/o3n-male-and-female-uma-races-102187 |
18 | 8 | Hannes Vilhjálmsson | |
19 | 9 | Hannes Vilhjálmsson | h2. Default Wardrobe Recipes |
20 | 1 | Sabina Huskic | |
21 | 10 | Hannes Vilhjálmsson | To see what kind of clothing is available i suggest you first try it out in play mode. In Dynamic character avatar (script) open the Default Wardrobe recipes tab and then in your Project files go to UMA\content\UMA_examples\HumanMale\recipes\WardrobeRecipes. Here are all the wardrobe items you can use to press up your character. Just drag and drop the item to the square. |
22 | 3 | Sabina Huskic | |
23 | 4 | Sabina Huskic | There is an option to copy and paste the component but if you do that to your UMA characters you will probably break them. So, if you want your character to wear those cloths each time you start your game, just write down the names of the objects and than drag and drop them to the component in edit mode. |
24 | 8 | Hannes Vilhjálmsson | |
25 | If you are using the o3n races, we have purchased both "a female clothing pack":https://projects.cs.ru.is/attachments/download/1102/Modern%20Clothing%20Pack%20for%20o3n%20Female.unitypackage and "a male clothing pack":https://projects.cs.ru.is/attachments/download/1103/Modern%20Clothing%20Pack%20for%20o3n%20Male.unitypackage for those. |
||
26 | 4 | Sabina Huskic | |
27 | 11 | Hannes Vilhjálmsson | h2. Animation Controllers |
28 | 4 | Sabina Huskic | |
29 | 11 | Hannes Vilhjálmsson | You can easily set a default 'idle' animation on your UMA character, just pick the 'Locomotion' controller for Animation Controller. When you press play a new Animator component will be added to your UMA. |
30 | 3 | Sabina Huskic | |
31 | TIPS: |
||
32 | 12 | Sabina Huskic | go to additional utility recipes and add: |
33 | - ForearmTwistRecipe - this will make the animation of the wrist on your character smoother and less distorted . |
||
34 | - ExpressionsRecipe - enables your character to blink and move his eyes around. It will also fix the jaw so that the characters mouth stays closed. |
||
35 | 4 | Sabina Huskic | How to turn your UMA character into a 3rd person controller character is well described in this video: https://youtu.be/Wse9I72YJvc?t=648 |
36 | 1 | Sabina Huskic | |
37 | 4 | Sabina Huskic | h1. UMA + LipSync |
38 | 1 | Sabina Huskic | |
39 | 9 | Hannes Vilhjálmsson | h2. Integration |
40 | 1 | Sabina Huskic | |
41 | 4 | Sabina Huskic | First you need to have UMA2 and LipSync in your project. Than you need the blend system for them. You can get it from Window -> rogo digital -> get extensions -> and find and download UMA 2 blend system. |
42 | |||
43 | Open the UMA character that you want to connect to LipSync pro and add the LipSync component to it. Choose the UMA blend system and drag and drop the UMA dynamic Avatar (script) to the Avatar box below. press continue. |
||
44 | |||
45 | For setting up the poses you have 2 options. First is by using a preset you can find in UMA 2 blend system\presets and importing the package. Go to your character, in the LypSync component click on the icon(3 lines with dots on them), go to UMA 2 -> standard. And this should work for most characters. For any changes that you want to make you can do them in play mode and then copy and paste them to your character in edit mode. |
||
46 | |||
47 | Before you can play anything you have to add the Audio source component to your character and drag it to the Audio source box in LipSync. To test this out check the play on awake box and choose a default clip. |
||
48 | |||
49 | 1 | Sabina Huskic | h1. UMA + FinalIK |
50 | |||
51 | 9 | Hannes Vilhjálmsson | h2. Integration |
52 | 4 | Sabina Huskic | |
53 | 7 | Sabina Huskic | First you need to have UMA2 and FinalIK in your project. Than add a script to your UMA character as a component (you can find my cs file down below). To activate the script go to 'Character events' in dynamic character avatar (script), click plus and add drag and drop the script into the box. Choose integrate method and press play. |