private void DepthTextureModeGUI()
{
if (base.targets.Length == 1)
{
Camera target = base.target as Camera;
if ((target != null) && (target.depthTextureMode != DepthTextureMode.None))
{
List<string> list = new List<string>();
if ((target.depthTextureMode & DepthTextureMode.Depth) != DepthTextureMode.None)
{
list.Add("Depth");
}
if ((target.depthTextureMode & DepthTextureMode.DepthNormals) != DepthTextureMode.None)
{
list.Add("DepthNormals");
}
if ((target.depthTextureMode & DepthTextureMode.MotionVectors) != DepthTextureMode.None)
{
list.Add("MotionVectors");
}
if (list.Count != 0)
{
StringBuilder builder = new StringBuilder("Info: renders ");
for (int i = 0; i < list.Count; i++)
{
if (i != 0)
{
builder.Append(" & ");
}
builder.Append(list[i]);
}
builder.Append((list.Count <= 1) ? " texture" : " textures");
EditorGUILayout.HelpBox(builder.ToString(), MessageType.None, true);
}
}
}
}