Set() public method

public Set ( AnimatorStateTransition transition, AnimatorState srcState, AnimatorState dstState ) : void
transition UnityEditor.Animations.AnimatorStateTransition
srcState AnimatorState
dstState AnimatorState
return void
コード例 #1
0
 public void SetTransition(AnimatorStateTransition transition, AnimatorState sourceState, AnimatorState destinationState, AnimatorControllerLayer srcLayer, Animator previewObject)
 {
     this.m_RefSrcState = sourceState;
     this.m_RefDstState = destinationState;
     TransitionPreview.TransitionInfo transitionInfo = new TransitionPreview.TransitionInfo();
     transitionInfo.Set(transition, sourceState, destinationState);
     if (this.MustResample(transitionInfo))
     {
         this.ResampleTransition(transition, srcLayer.avatarMask, transitionInfo, previewObject);
     }
 }
コード例 #2
0
 public void SetTransition(AnimatorStateTransition transition, AnimatorState sourceState, AnimatorState destinationState, AnimatorControllerLayer srcLayer, Animator previewObject)
 {
   this.m_RefSrcState = sourceState;
   this.m_RefDstState = destinationState;
   TransitionPreview.TransitionInfo info = new TransitionPreview.TransitionInfo();
   info.Set(transition, sourceState, destinationState);
   if (!this.MustResample(info))
     return;
   this.ResampleTransition(transition, srcLayer.avatarMask, info, previewObject);
 }