UnityEditor.TransitionPreview.SetMotion C# (CSharp) Method

SetMotion() private method

private SetMotion ( AnimatorState state, int layerIndex, Motion motion ) : void
state AnimatorState
layerIndex int
motion UnityEngine.Motion
return void
        private void SetMotion(AnimatorState state, int layerIndex, Motion motion)
        {
            AnimatorControllerLayer[] layers = this.m_Controller.layers;
            state.motion = motion;
            this.m_Controller.layers = layers;
        }