public static DynamicUMADna_Byte FromDna(DynamicUMADnaBase dna)
        {
            var res = new DynamicUMADna_Byte();

            res.bDnaAsset = dna.dnaAsset;
            if (dna.dnaAsset != null)
            {
                res.bDnaAssetName = dna.dnaAsset.name;
            }
            res.bDnaSettings = new DNASettings[dna._values.Length];
            for (int i = 0; i < dna._values.Length; i++)
            {
                res.bDnaSettings[i] = new DNASettings(dna._names[i], (System.Byte)(dna._values[i] * 255f + 0.5f));
            }
            return(res);
        }
 public static string SaveInstance(DynamicUMADnaBase instance)
 {
     return(UnityEngine.JsonUtility.ToJson(DynamicUMADna_Byte.FromDna(instance)));
 }