프로젝트 버전 업그레이드 및 빌드 테스트
This commit is contained in:
@@ -4,7 +4,7 @@ using System.Collections;
|
||||
|
||||
namespace TMPro.Examples
|
||||
{
|
||||
|
||||
|
||||
public class TMP_FrameRateCounter : MonoBehaviour
|
||||
{
|
||||
public float UpdateInterval = 5.0f;
|
||||
@@ -30,7 +30,7 @@ namespace TMPro.Examples
|
||||
return;
|
||||
|
||||
m_camera = Camera.main;
|
||||
Application.targetFrameRate = -1;
|
||||
Application.targetFrameRate = 9999;
|
||||
|
||||
GameObject frameCounter = new GameObject("Frame Counter");
|
||||
|
||||
@@ -43,11 +43,11 @@ namespace TMPro.Examples
|
||||
m_frameCounter_transform.SetParent(m_camera.transform);
|
||||
m_frameCounter_transform.localRotation = Quaternion.identity;
|
||||
|
||||
m_TextMeshPro.enableWordWrapping = false;
|
||||
m_TextMeshPro.textWrappingMode = TextWrappingModes.NoWrap;
|
||||
m_TextMeshPro.fontSize = 24;
|
||||
//m_TextMeshPro.FontColor = new Color32(255, 255, 255, 128);
|
||||
//m_TextMeshPro.edgeWidth = .15f;
|
||||
m_TextMeshPro.isOverlay = true;
|
||||
//m_TextMeshPro.isOverlay = true;
|
||||
|
||||
//m_TextMeshPro.FaceColor = new Color32(255, 128, 0, 0);
|
||||
//m_TextMeshPro.EdgeColor = new Color32(0, 255, 0, 255);
|
||||
@@ -92,6 +92,7 @@ namespace TMPro.Examples
|
||||
|
||||
//string format = System.String.Format(htmlColorTag + "{0:F2} </color>FPS \n{1:F2} <#8080ff>MS",fps, ms);
|
||||
//m_TextMeshPro.text = format;
|
||||
|
||||
m_TextMeshPro.SetText(htmlColorTag + fpsLabel, fps, ms);
|
||||
|
||||
m_Frames = 0;
|
||||
@@ -130,4 +131,4 @@ namespace TMPro.Examples
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user