UnityEditor.TransitionPreview.OnInteractivePreviewGUI C# (CSharp) Method

OnInteractivePreviewGUI() public method

public OnInteractivePreviewGUI ( Rect r, GUIStyle background ) : void
r UnityEngine.Rect
background UnityEngine.GUIStyle
return void
        public void OnInteractivePreviewGUI(Rect r, GUIStyle background)
        {
            if ((this.m_AvatarPreview != null) && (this.m_Controller != null))
            {
                if ((this.m_LastEvalTime != this.m_AvatarPreview.timeControl.currentTime) && (Event.current.type == EventType.Repaint))
                {
                    this.m_AvatarPreview.Animator.playbackTime = this.m_AvatarPreview.timeControl.currentTime;
                    this.m_AvatarPreview.Animator.Update(0f);
                    this.m_LastEvalTime = this.m_AvatarPreview.timeControl.currentTime;
                }
                this.m_AvatarPreview.DoAvatarPreview(r, background);
            }
        }