/// <summary> /// TODO: 子ステートをディープコピーして欲しい。 /// </summary> public static ChildAnimatorState DeepcopyChildstate(ChildAnimatorState old) { ChildAnimatorState n = new ChildAnimatorState(); n.position = old.position; n.state = AconDeepcopy.DeepcopyState(old.state); return(n); }
/// <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); }
/// <summary> /// TODO: ステートマシンをディープコピーして欲しい。 /// </summary> public static AnimatorStateMachine DeepcopyStatemachine(AnimatorStateMachine old) { AnimatorStateMachine n = new AnimatorStateMachine(); n.anyStatePosition = old.anyStatePosition; n.anyStateTransitions = old.anyStateTransitions; n.behaviours = old.behaviours; n.defaultState = old.defaultState; n.entryPosition = old.entryPosition; n.entryTransitions = old.entryTransitions; n.exitPosition = old.exitPosition; n.hideFlags = old.hideFlags; n.name = old.name; n.parentStateMachinePosition = old.parentStateMachinePosition; n.stateMachines = AconDeepcopy.DeepcopyChildStatemachine(old.stateMachines); n.states = old.states; return(n); }