浏览代码

Replacing StringBuilder.Append with StringBuilder.AppendLine.

/4.1
Todd Stinson 4 年前
当前提交
0dd31e5f
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 12
      Assets/Scripts/DisplayDepthImage.cs

12
Assets/Scripts/DisplayDepthImage.cs


/// <param name="texture">The texture for which to log information.</param>
void LogTextureInfo(StringBuilder stringBuilder, string textureName, Texture2D texture)
{
stringBuilder.Append($"texture : {textureName}\n");
stringBuilder.AppendLine($"texture : {textureName}");
stringBuilder.Append(" <null>\n");
stringBuilder.AppendLine(" <null>");
stringBuilder.Append($" format : {texture.format}\n");
stringBuilder.Append($" width : {texture.width}\n");
stringBuilder.Append($" height : {texture.height}\n");
stringBuilder.Append($" mipmap : {texture.mipmapCount}\n");
stringBuilder.AppendLine($" format : {texture.format}");
stringBuilder.AppendLine($" width : {texture.width}");
stringBuilder.AppendLine($" height : {texture.height}");
stringBuilder.AppendLine($" mipmap : {texture.mipmapCount}");
}
}

正在加载...
取消
保存