UnityEditor.VerticalGridWithSplitter.UpdateSplitAnimationOnGUI C# (CSharp) Method

UpdateSplitAnimationOnGUI() public method

public UpdateSplitAnimationOnGUI ( ) : bool
return bool
        public bool UpdateSplitAnimationOnGUI()
        {
            if (this.m_SplitAfterRow != -1)
            {
                float num = Time.realtimeSinceStartup - this.m_LastSplitUpdate;
                this.m_CurrentSplitHeight = num * this.m_TargetSplitHeight;
                this.m_LastSplitUpdate = Time.realtimeSinceStartup;
                if ((this.m_CurrentSplitHeight != this.m_TargetSplitHeight) && (Event.current.type == EventType.Repaint))
                {
                    this.m_CurrentSplitHeight = Mathf.MoveTowards(this.m_CurrentSplitHeight, this.m_TargetSplitHeight, 0.03f);
                    if ((this.m_CurrentSplitHeight == 0f) && (this.m_TargetSplitHeight == 0f))
                    {
                        this.ResetSplit();
                    }
                    return true;
                }
            }
            return false;
        }