// Update is called once per frame void OnGUI() { // Display in our text component the avg fps guiTextComponent.text = System.String.Format("{0:F2} Skeleton FPS", frameRateCalc.GetAvgFps()); }
void OnGUI() { myText.text = string.Format("{0}\n{1:F2} RGB FPS", drawRGB? "":"Click RGB to resume", frameRateCalc.GetAvgFps()); }