protected void DrawAxis(float frameTime, float yPosition, ProfilerGraphAxisLabel label) { #if LOGGING if (!Application.isPlaying) { Debug.Log("Draw Axis: {0}".Fmt(yPosition)); } #endif var lx = -rectTransform.rect.width * 0.5f; var rx = -lx; var uy = yPosition - rectTransform.rect.height * 0.5f + 0.5f; var ly = yPosition - rectTransform.rect.height * 0.5f - 0.5f; var c = new Color(1f, 1f, 1f, 0.4f); AddRect(new Vector3(lx, ly), new Vector3(lx, uy), new Vector3(rx, uy), new Vector3(rx, ly), c); if (label != null) { label.SetValue(frameTime, yPosition); } }
protected void DrawAxis(float frameTime, float yPosition, ProfilerGraphAxisLabel label) { #if LOGGING if(!Application.isPlaying) Debug.Log("Draw Axis: {0}".Fmt(yPosition)); #endif var lx = -rectTransform.rect.width*0.5f; var rx = -lx; var uy = yPosition - rectTransform.rect.height*0.5f + 0.5f; var ly = yPosition - rectTransform.rect.height*0.5f - 0.5f; var c = new Color(1f, 1f, 1f, 0.4f); AddRect(new Vector3(lx, ly), new Vector3(lx, uy), new Vector3(rx, uy), new Vector3(rx, ly), c); if (label != null) { label.SetValue(frameTime, yPosition); } }