|
|
|
@ -71,7 +71,12 @@ public class ConsoleTest : MonoBehaviour |
|
|
|
|
|
|
|
private void OnGUI() |
|
|
|
{ |
|
|
|
GUI.matrix = Matrix4x4.Scale(new Vector3(3, 3, 1)); |
|
|
|
int screenHeight = Screen.currentResolution.height; |
|
|
|
if (screenHeight == 0) |
|
|
|
screenHeight = 1080; |
|
|
|
|
|
|
|
float screenScale = screenHeight / 720f; |
|
|
|
GUI.matrix = Matrix4x4.Scale(new Vector3(screenScale, screenScale, 1)); |
|
|
|
|
|
|
|
if (fpsText != null) |
|
|
|
GUI.Label(new Rect(10, 10, 1000, 100), fpsText); |
|
|
|
|