public DNAEvaluator(DNAEvaluator other) { _calcOption = other.calcOption; _dnaName = other.dnaName; _dnaNameHash = UMAUtils.StringToHash(_dnaName); _evaluator = other.evaluator == null ? DNAEvaluationGraph.Default : new DNAEvaluationGraph(other.evaluator); _multiplier = other.multiplier; _initialized = true; }
public MasterWeight(MasterWeightType masterWeightType = MasterWeightType.UseGlobalValue, float defaultWeight = 1f, string dnaForWeightName = "", DNAEvaluationGraph dnaForWeightGraph = null, float dnaForWeightMultiplier = 1f) { _masterWeightType = masterWeightType; _globalWeight = defaultWeight; if (!string.IsNullOrEmpty(dnaForWeightName)) { _DNAForWeight = new DNAEvaluator(dnaForWeightName, dnaForWeightGraph, dnaForWeightMultiplier); } else { _DNAForWeight = new DNAEvaluator("", DNAEvaluationGraph.Raw, 1); } }
public MasterWeight(MasterWeight other) { _masterWeightType = other._masterWeightType; _globalWeight = other._globalWeight; _DNAForWeight = new DNAEvaluator(other._DNAForWeight); }
public void Remove(DNAEvaluator evaluator) { _dnaEvaluators.Remove(evaluator); }
public void Insert(int index, DNAEvaluator evaluator) { _dnaEvaluators.Insert(index, evaluator); }
public int IndexOf(DNAEvaluator evaluator) { return(_dnaEvaluators.IndexOf(evaluator)); }
public bool Contains(DNAEvaluator evaluator) { return(_dnaEvaluators.Contains(evaluator)); }
public void Add(DNAEvaluator evaluator) { _dnaEvaluators.Add(evaluator); }