コード例 #1
0
        // Start is called before the first frame update
        void Start()
        {
            umaData.staticCharacter = true;
            umaData.SetupSkeleton();
            DNA = UMAPackedRecipeBase.UnPackDNA(PackedDNA);
            UMA.UMAData.UMARecipe umaRecipe = umaData._umaRecipe;

            umaRecipe.ClearDna();

            foreach (UMADnaBase umd in DNA)
            {
                umaRecipe.AddDna(umd);
            }
            umaData._umaRecipe.ClearDNAConverters();
        }
コード例 #2
0
 public Dictionary <string, float> GetDefaultDNA()
 {
     if (GetPackedRecipe() == null)
     {
         return(RaceDNAValues);
     }
     if (RaceDNAValues.Count == 0)
     {
         List <UMADnaBase> dna = UMAPackedRecipeBase.UnPackDNA(packedRecipe.packedDna);
         foreach (UMADnaBase udb in dna)
         {
             for (int i = 0; i < udb.Names.Length; i++)
             {
                 if (RaceDNAValues.ContainsKey(udb.Names[i]) == false)
                 {
                     RaceDNAValues.Add(udb.Names[i], udb.Values[i]);
                 }
             }
         }
     }
     return(RaceDNAValues);
 }
コード例 #3
0
            public UMADnaBase[] GetAllDna()
            {
                List <UMADnaBase> unpackedDna = UMAPackedRecipeBase.UnPackDNA(packedDna);

                return(unpackedDna.ToArray());
            }