From e171a9f04a70a2b6dce75acf25a3dbce6624405f Mon Sep 17 00:00:00 2001 From: tung_tung Date: Mon, 4 Aug 2025 11:38:14 +0700 Subject: [PATCH] COR-5722: hotfix to make message log to wrap mode --- unity/Assets/SimpleExample.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/unity/Assets/SimpleExample.cs b/unity/Assets/SimpleExample.cs index 08a3e71..32baf9a 100644 --- a/unity/Assets/SimpleExample.cs +++ b/unity/Assets/SimpleExample.cs @@ -38,6 +38,15 @@ public class SimpleExample : MonoBehaviour [SerializeField] public Text MessageLog; + // Enable horizontal wrapping for MessageLog + private void Awake() + { + if (MessageLog != null) + { + MessageLog.horizontalOverflow = HorizontalWrapMode.Wrap; + } + } + // for android #if UNITY_ANDROID private const string FineLocationPermission = "android.permission.ACCESS_FINE_LOCATION";