From 8e9e237cb40f15bf8f3cebbe406d73fe40a19b88 Mon Sep 17 00:00:00 2001 From: ALEXTANG <574809918@qq.com> Date: Fri, 27 May 2022 20:38:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0ConsoleToScreen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit æ›´æ–°ConsoleToScreen --- Assets/Scene/ConsoleToSceen.cs | 6 +++--- .../UI/Extend/UIBackgroundImageStretch.cs.meta | 11 +++++++++++ .../TEngine/Runtime/UI/Extend/UIStretchUtil.cs.meta | 11 +++++++++++ 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 Assets/TEngine/Runtime/UI/Extend/UIBackgroundImageStretch.cs.meta create mode 100644 Assets/TEngine/Runtime/UI/Extend/UIStretchUtil.cs.meta diff --git a/Assets/Scene/ConsoleToSceen.cs b/Assets/Scene/ConsoleToSceen.cs index be5c2af8..a30566c5 100644 --- a/Assets/Scene/ConsoleToSceen.cs +++ b/Assets/Scene/ConsoleToSceen.cs @@ -46,10 +46,10 @@ public class ConsoleToSceen : MonoBehaviour void OnGUI() { - titleStyle2.fontSize = 20; + titleStyle2.fontSize = 26; titleStyle2.normal.textColor = Color.white; - GUI.matrix = Matrix4x4.TRS(Vector3.zero, Quaternion.identity, - new Vector3(Screen.width / 1920f, Screen.height / 800.0f, 1.0f)); + //GUI.matrix = Matrix4x4.TRS(Vector3.zero, Quaternion.identity, new Vector3(Screen.width / 1920f, Screen.height / 800.0f, 1.0f)); + GUI.matrix = Matrix4x4.TRS(Vector3.zero, Quaternion.identity, Vector3.one); GUI.Label(new Rect(10, 10, 800, 370), _logStr, titleStyle2); } } \ No newline at end of file diff --git a/Assets/TEngine/Runtime/UI/Extend/UIBackgroundImageStretch.cs.meta b/Assets/TEngine/Runtime/UI/Extend/UIBackgroundImageStretch.cs.meta new file mode 100644 index 00000000..08050a76 --- /dev/null +++ b/Assets/TEngine/Runtime/UI/Extend/UIBackgroundImageStretch.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ebb7766916c025e458ae78907718751e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/TEngine/Runtime/UI/Extend/UIStretchUtil.cs.meta b/Assets/TEngine/Runtime/UI/Extend/UIStretchUtil.cs.meta new file mode 100644 index 00000000..01f24438 --- /dev/null +++ b/Assets/TEngine/Runtime/UI/Extend/UIStretchUtil.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1720cb3391d0d364b888cad5e134c3d0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: