SpaceMadness / lunar-unity-console

High-performance Unity iOS/Android logger built with native platform UI
https://www.assetstore.unity3d.com/en/#!/content/43800
Other
833 stars 112 forks source link

Rich text (color) does not apply to entire output #203

Closed TechCor8 closed 2 years ago

TechCor8 commented 2 years ago

The rich text output does not match the Unity editor output. This behavior may be due to the log length.

We use StringBuilder to append a large number (50+) of color coded variables together. The first few lines display correctly, but then the color tags are ignored.

Example code:

System.Text.StringBuilder sb = new System.Text.StringBuilder();
foreach (var item in List)
{
    string color = item.IsSet ? "00ff00ff" : "007700ff";
    sb.AppendLine($"<color=#{color}>" + item.Name + "</color> = <color=#ffffffff>" + item.ToString() + "</color>");
}

Debug.Log(sb.ToString());
weeeBox commented 2 years ago

Fixed in 1.8.6