Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by DeadSeraph · Jun 19, 2019 at 07:44 PM · uma

UMA DNA System

I'm wondering if anyone with experience with UMA can help me out? I'm just getting started integrating UMA with an existing project, and I've hit a bit of a snag in regard to UMA's DNA system. All I want to do in this case, is just change the facial features of the standard UMA male and female that UMA comes with. In this scenario, I have a few different UMA characters set up as prefabs, and would like to change their appearances individually. However, the DNA sliders only appear at run time, and any changes made there do not persist.

I've watched the tutorials on youtube and the best I can tell, the only way to do this is to code a character creator? Is that correct?

I am wondering if there is a way to simply alter the existing UMA DNA without having to code a character creator so I can prototype some facial features/body types quickly, as I have no coding skills at all.

Thanks in advance.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Naxinit · Feb 17, 2020 at 11:48 PM 0
Share

Same Problem Could some Legend direct us to the right solution?

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Michael_Berna · Apr 07, 2020 at 08:45 PM

I know this thread is old, but I do have the answer for it in case anyone wants to know. When you hit play, you can figure out the names of some of the DNA, but this should get you started with some and the general syntax. Bonus clothing changing function is here also.

 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 using UMA;
 using UMA.CharacterSystem;
 public class BuildUmaCharacterCustomizable : MonoBehaviour
 {
     public DynamicCharacterAvatar avatar;
 
     [SerializeField]
     private float armLength = 0.5f;
     [SerializeField]
     private float armWidth = 0.5f;
 
     [SerializeField]
     private float breastCleavage = 0.5f;
     [SerializeField]
     private float breastSize = 0.5f;
 
     [SerializeField]
     private float cheekPosition = 0.5f;
     [SerializeField]
     private float cheekSize = 0.5f;
 
     [SerializeField]
     private float chinPosition = 0.5f;
     [SerializeField]
     private float chinPronounced = 0.5f;
     [SerializeField]
     private float chinSize = 0.5f;
 
     [SerializeField]
     private float earsPosition = 0.5f;
     [SerializeField]
     private float earsRotation = 0.5f;
     [SerializeField]
     private float earsSize = 0.5f;
 
     [SerializeField]
     private float eyeRotation = 0.5f;
     [SerializeField]
     private float eyeSize = 0.5f;
     [SerializeField]
     private float eyeSpacing = 0.5f;
 
     [SerializeField]
     private float feetSize = 0.5f;
 
     [SerializeField]
     private float forearmLength = 0.5f;
     [SerializeField]
     private float forearmWidth = 0.5f;
 
     [SerializeField]
     private float foreheadPosition = 0.5f;
     [SerializeField]
     private float foreheadSize = 0.5f;
 
     [SerializeField]
     private float gluteusSize = 0.5f;
 
     [SerializeField]
     private float handsSize = 0.5f;
 
     [SerializeField]
     private float headSize = 0.5f;
     [SerializeField]
     private float headWidth = 0.5f;
 
     private float jawPosition = 0.5f;
     [SerializeField]
     private float jawSize = 0.5f;
 
     [SerializeField]
     private float legSeparation = 0.5f;
     [SerializeField]
     private float legsSize = 0.5f;
 
     [SerializeField]
     private float lipsSize = 0.5f;
 
     [SerializeField]
     private float lowerMuscle = 0.5f;
     [SerializeField]
     private float lowerWeight = 0.5f;
 
     [SerializeField]
     private float mandibleSize = 0.5f;
 
     [SerializeField]
     private float mouthSize = 0.5f;
 
     [SerializeField]
     private float neckThickness = 0.5f;
 
     [SerializeField]
     private float noseCurve = 0.5f;
     [SerializeField]
     private float noseFlatten = 0.5f;
     [SerializeField]
     private float noseInclination = 0.5f;
     [SerializeField]
     private float nosePosition = 0.5f;
     [SerializeField]
     private float nosePronounced = 0.5f;
     [SerializeField]
     private float noseSize = 0.5f;
     [SerializeField]
     private float noseWidth = 0.5f;
 
     [SerializeField]
     private float belly = 0.5f;
     [SerializeField]
     private float height = 1.5f;
     [SerializeField]
     private float waist = 0.5f;
     [SerializeField]
     private float upperMuscle = 0.5f;
     [SerializeField]
     private float upperWeight = 0.5f;
     
 
     void Start()
     {
         UMAPredefinedDNA predefinedDNA = new UMAPredefinedDNA();
 
         predefinedDNA.AddDNA("armWidth", armWidth);
         predefinedDNA.AddDNA("armLength", armLength);
 
         predefinedDNA.AddDNA("breastSize", breastSize);
         predefinedDNA.AddDNA("breastCleavage", breastCleavage);
 
         predefinedDNA.AddDNA("cheekPosition", cheekPosition);
         predefinedDNA.AddDNA("cheeckSize", cheekSize);
 
         predefinedDNA.AddDNA("chinPosition", chinPosition);
         predefinedDNA.AddDNA("chinPronounced", chinPronounced);
         predefinedDNA.AddDNA("chinSize", chinSize);
 
         predefinedDNA.AddDNA("earsPosition", earsPosition);
         predefinedDNA.AddDNA("earsRotation", earsRotation);
         predefinedDNA.AddDNA("earsSize", earsSize);
 
         predefinedDNA.AddDNA("eyeRotation", eyeRotation);
         predefinedDNA.AddDNA("eyeSize", eyeSize);
         predefinedDNA.AddDNA("eyeSpacing", eyeSpacing);
 
         predefinedDNA.AddDNA("feetSize", feetSize);
 
         predefinedDNA.AddDNA("forearmWidth", forearmWidth);
         predefinedDNA.AddDNA("forearmLength", forearmLength);
 
         predefinedDNA.AddDNA("foreheadSize", foreheadSize);
         predefinedDNA.AddDNA("foreheadPosition", foreheadPosition);
 
         predefinedDNA.AddDNA("gluteusSize", gluteusSize);
 
         predefinedDNA.AddDNA("handsSize", handsSize);
 
         predefinedDNA.AddDNA("jawPosition", jawPosition);
         predefinedDNA.AddDNA("jawSize", jawSize);
 
         predefinedDNA.AddDNA("legSeparation", legSeparation);
         predefinedDNA.AddDNA("legsSize", legsSize);
 
         predefinedDNA.AddDNA("lipsSize", lipsSize);
 
         predefinedDNA.AddDNA("lowerWeight", lowerWeight);
         predefinedDNA.AddDNA("upperWeight", upperWeight);
 
         predefinedDNA.AddDNA("mandibleSize", mandibleSize);
 
         predefinedDNA.AddDNA("mouthSize", mouthSize);
 
         predefinedDNA.AddDNA("neckThickness", neckThickness);
 
         predefinedDNA.AddDNA("noseCurve", noseCurve);
         predefinedDNA.AddDNA("noseFlatten", noseFlatten);
         predefinedDNA.AddDNA("noseInclination", noseInclination);
         predefinedDNA.AddDNA("nosePosition", nosePosition);
         predefinedDNA.AddDNA("nosePronounced", nosePronounced);
         predefinedDNA.AddDNA("noseSize", noseSize);
         predefinedDNA.AddDNA("noseWidth", noseWidth);
 
         predefinedDNA.AddDNA("belly", belly);
         predefinedDNA.AddDNA("height", height);
         predefinedDNA.AddDNA("waist", waist);
 
         predefinedDNA.AddDNA("upperMuscle", upperMuscle);
         predefinedDNA.AddDNA("lowerMuscle", lowerMuscle);    
 
         avatar.predefinedDNA = predefinedDNA;
 
         Dictionary<string, DnaSetter> AllDNA = avatar.GetDNA();
 
         foreach(KeyValuePair<string, DnaSetter> entry in AllDNA)
         {
             Debug.Log(entry.Key);
         }
 
     }
     public void wearItem(string slotName, UMAWardrobeRecipe recipe)
     {
         avatar.SetSlot(slotName, recipe.name);
         avatar.BuildCharacter();
     }
 
     public void removeItem(string slotName)
     {
         avatar.ClearSlot(slotName);
         avatar.BuildCharacter();
     }
 }
 

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

180 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Problem saving UMA avatar to text file via button onClick. 0 Answers

Uma2 mesh hider asset is not working 0 Answers

Scaling UMA avatar with exact value 1 Answer

Can UMA DCS be used with a character controller? 1 Answer

Why is my UMA Gray? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges