Assets/SpeechToText/Scripts/SpeechToTextWidgets/SpeechToTextServiceWidget.cs
/// <summary>
/// Function that is called every frame, if the MonoBehaviour is enabled.
/// </summary>
Function that is called every frame, if the MonoBehaviour is enabled.
Function that is called every frame if the MonoBehaviour is enabled .
void Update()
        {
            if (m_ReadyToFitScrollViewContentToText)
            {
                FitScrollViewContentToText();
            }
            else if (m_ScrollViewContentRect != null && m_ScrollViewContentRect.rect.height > 0)
            {
                m_MinScrollViewContentHeight = m_ScrollViewContentRect.rect.height;
                m_ReadyToFitScrollViewContentToText = true;
            }
        }
void Update ( ) { if ( m_ReadyToFitScrollViewContentToText ) { FitScrollViewContentToText ( ) ; } else if ( m_ScrollViewContentRect != null && m_ScrollViewContentRect . rect . height > 0 ) { m_MinScrollViewContentHeight = m_ScrollViewContentRect . rect . height ; m_ReadyToFitScrollViewContentToText = true ; } }
Function that is called every frame, if the MonoBehaviour is enabled.
Function that is called every frame if the MonoBehaviour is enabled .
// The scroll view content dimensions are not calculated upon initialization so Update must check for this.