Assets/Watson/Scripts/Debug/DebugConsole.cs
/// <summary>
/// Unregister a debug info hook.
/// </summary>
/// <param name="label">The label to unregister.</param>
/// <param name="callback">The callback to unregister. If null, then the callback will be matched by label only.</param>
/// <returns>Returns true if the callback was unregistered.</returns>
Unregister a debug info hook.
Unregister a debug info hook .
public bool UnregisterDebugInfo(string label, GetDebugInfo callback = null)
        {
            if (string.IsNullOrEmpty(label))
                throw new ArgumentNullException("label");
            for (int i = 0; i < m_DebugInfos.Count; ++i)
            {
                if (m_DebugInfos[i].m_Label == label)
                {
                    if (callback != null && callback != m_DebugInfos[i].m_Callback)
                        continue;
                    Destroy(m_DebugInfos[i].m_InfoObject);
                    m_DebugInfos.RemoveAt(i);
                    return true;
                }
            }
            return false;
        }
public bool UnregisterDebugInfo ( string label , GetDebugInfo callback = null ) { if ( string . IsNullOrEmpty ( label ) ) throw new ArgumentNullException ( " " ) ; for ( int i = 0 ; i < m_DebugInfos . Count ; ++ i ) { if ( m_DebugInfos [ i ] . m_Label == label ) { if ( callback != null && callback != m_DebugInfos [ i ] . m_Callback ) continue ; Destroy ( m_DebugInfos [ i ] . m_InfoObject ) ; m_DebugInfos . RemoveAt ( i ) ; return true ; } } return false ; }
Unregister a debug info hook.
Unregister a debug info hook .
Returns true if the callback was unregistered.
Returns true if the callback was unregistered .
label
string
The label to unregister.
The label to unregister .
callback
GetDebugInfo
The callback to unregister. If null, then the callback will be matched by label only.
The callback to unregister . If null then the callback will be matched by label only .