/// <summary> /// TODO: 子ステートマシンをディープコピーして欲しい。 /// </summary> public static ChildAnimatorStateMachine DeepcopyChildStatemachine(ChildAnimatorStateMachine old) { ChildAnimatorStateMachine n = new ChildAnimatorStateMachine(); n.position = old.position; n.stateMachine = AconDeepcopy.DeepcopyStatemachine(old.stateMachine); return(n); }
/// <summary> /// TODO: レイヤーをディープコピーして欲しい。 /// </summary> public static AnimatorControllerLayer DeepcopyLayer(AnimatorControllerLayer old) { AnimatorControllerLayer n = new AnimatorControllerLayer(); n.avatarMask = old.avatarMask; n.blendingMode = old.blendingMode; n.defaultWeight = old.defaultWeight; n.iKPass = old.iKPass; n.name = old.name; n.stateMachine = AconDeepcopy.DeepcopyStatemachine(old.stateMachine); n.syncedLayerAffectsTiming = old.syncedLayerAffectsTiming; n.syncedLayerIndex = old.syncedLayerIndex; return(n); }