- Home /
Custom Console Window : Differentiate compiler error when clearing console
Hi guys,
I'm trying to create a custom console with customs features and i'm stuck with an issue :
I'm getting logs from Application.logMessageReceives callback, storing them in a list and display them on OnGUI() method.
I have a Clear method that will clear this list. But i'm not able to keep the compiling errors like :
Assets\Scripts\Runtime\MyScript.cs(183,9): error CS1002: ; expected
I can do something like this :
if (log.info.Contains("error CS"))
... to detect that is a compiling error, but we don't have any callback to say : "Hey, this log is fixed, you can remove it".
An other way is to call the Clear method of the default Unity console by reflection but we can't get the remaining logs.
If someone had an idea, i'm waiting for you :D
Thanks
Your answer
Follow this Question
Related Questions
Redirect Unity unmanaged console 0 Answers
Console Error but not showing 3 Answers
The console no longer takes you directly to the error in the script? 1 Answer
ProjectSettings.txt is corrupt 1 Answer