Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
TechCor8 opened this issue Oct 2, 2021 · 1 comment · Fixed by #207
Closed

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

TechCor8 opened this issue Oct 2, 2021 · 1 comment · Fixed by #207

Comments

@TechCor8
Copy link

TechCor8 commented Oct 2, 2021

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 weeeBox linked a pull request Oct 23, 2021 that will close this issue
@weeeBox
Copy link
Member

weeeBox commented Oct 23, 2021

Fixed in 1.8.6

@weeeBox weeeBox closed this as completed Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants