Author Topic: How can i clear the screen after using NGUIDebug.Log ?  (Read 2778 times)

Sahkan

  • Jr. Member
  • **
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 74
    • View Profile
How can i clear the screen after using NGUIDebug.Log ?
« on: July 29, 2014, 01:02:29 AM »
It will just stay forever...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How can i clear the screen after using NGUIDebug.Log ?
« Reply #1 on: July 29, 2014, 03:33:32 AM »
Add this function to it:
  1.         /// <summary>
  2.         /// Clear the logged text.
  3.         /// </summary>
  4.  
  5.         static public void Clear () { mLines.Clear(); }

Sahkan

  • Jr. Member
  • **
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 74
    • View Profile
Re: How can i clear the screen after using NGUIDebug.Log ?
« Reply #2 on: July 29, 2014, 03:41:27 AM »
Add this function to it:
  1.         /// <summary>
  2.         /// Clear the logged text.
  3.         /// </summary>
  4.  
  5.         static public void Clear () { mLines.Clear(); }

Awesome Thanks !  :)