DoAvatarPreview() public méthode

public DoAvatarPreview ( Rect rect, GUIStyle background ) : void
rect UnityEngine.Rect
background UnityEngine.GUIStyle
Résultat void
Exemple #1
0
        public void OnInteractivePreviewGUI(Rect r, GUIStyle background)
        {
            if (m_AvatarPreview != null && m_Controller != null)
            {
                if (m_LastEvalTime != m_AvatarPreview.timeControl.currentTime && Event.current.type == EventType.Repaint)
                {
                    m_AvatarPreview.Animator.playbackTime = m_AvatarPreview.timeControl.currentTime;
                    m_AvatarPreview.Animator.Update(0);
                    m_LastEvalTime = m_AvatarPreview.timeControl.currentTime;
                }

                m_AvatarPreview.DoAvatarPreview(r, background);
            }
        }