Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
added application name and version to diagnostics window (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson authored Aug 16, 2019
1 parent b8e8fa4 commit 8ca3f75
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public float WindowFollowSpeed
private Color memoryLimitColor = new Color(150 / 256.0f, 150 / 256.0f, 150 / 256.0f, 1.0f);

private GameObject window;
private TextMesh applicationDetailsText;
private TextMesh cpuFrameRateText;
private TextMesh gpuFrameRateText;
private TextMesh usedMemoryText;
Expand Down Expand Up @@ -474,6 +475,12 @@ private void BuildWindow()
windowVerticalRotationInverse = Quaternion.Inverse(windowVerticalRotation);
}

// Add Application details text
{
applicationDetailsText = CreateText("ApplicationDetails", new Vector3(0.495f, 0.75f, 0.0f), window.transform, TextAnchor.UpperRight, textMaterial, Color.white, string.Empty);
applicationDetailsText.text = $"{Application.productName} v{Application.version}";
}

// Add frame rate text and frame indicators.
{
cpuFrameRateText = CreateText("CPUFrameRateText", new Vector3(-0.495f, 0.5f, 0.0f), window.transform, TextAnchor.UpperLeft, textMaterial, Color.white, string.Empty);
Expand Down

0 comments on commit 8ca3f75

Please sign in to comment.