浏览代码

Cleaning up some logging.

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

12
Assets/Scripts/TestDepthImage.cs


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

正在加载...
取消
保存