diff --git a/CHANGELOG.md b/CHANGELOG.md index 16effc9..b75c4bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog These are the release notes for the TextMesh Pro UPM package which was first introduced with Unity 2018.1. Please see the following link for the Release Notes for prior versions of TextMesh Pro. http://digitalnativestudios.com/forum/index.php?topic=1363.0 +## [3.0.7] - 2024-01-14 +### Changes +- Add support for Visions OS keyboard. ## [3.0.6] - 2021-04-23 ## [2.1.6] ## [1.5.6] diff --git a/Scripts/Runtime/TMP_InputField.cs b/Scripts/Runtime/TMP_InputField.cs index 7edfa6e..fc9ce7d 100644 --- a/Scripts/Runtime/TMP_InputField.cs +++ b/Scripts/Runtime/TMP_InputField.cs @@ -420,6 +420,9 @@ public bool shouldHideSoftKeyboard case RuntimePlatform.Android: case RuntimePlatform.IPhonePlayer: case RuntimePlatform.tvOS: + #if UNITY_XR_VISIONOS_SUPPORTED + case RuntimePlatform.VisionOS: + #endif case RuntimePlatform.WSAPlayerX86: case RuntimePlatform.WSAPlayerX64: case RuntimePlatform.WSAPlayerARM: @@ -444,6 +447,9 @@ public bool shouldHideSoftKeyboard case RuntimePlatform.Android: case RuntimePlatform.IPhonePlayer: case RuntimePlatform.tvOS: + #if UNITY_XR_VISIONOS_SUPPORTED + case RuntimePlatform.VisionOS: + #endif case RuntimePlatform.WSAPlayerX86: case RuntimePlatform.WSAPlayerX64: case RuntimePlatform.WSAPlayerARM: @@ -477,6 +483,9 @@ private bool isKeyboardUsingEvents() case RuntimePlatform.Android: case RuntimePlatform.IPhonePlayer: case RuntimePlatform.tvOS: + #if UNITY_XR_VISIONOS_SUPPORTED + case RuntimePlatform.VisionOS: + #endif #if UNITY_2020_2_OR_NEWER case RuntimePlatform.PS4: #if !(UNITY_2020_2_1 || UNITY_2020_2_2) diff --git a/Scripts/Runtime/Unity.TextMeshPro.asmdef b/Scripts/Runtime/Unity.TextMeshPro.asmdef index 2abb4e4..f6a3277 100644 --- a/Scripts/Runtime/Unity.TextMeshPro.asmdef +++ b/Scripts/Runtime/Unity.TextMeshPro.asmdef @@ -8,5 +8,12 @@ "overrideReferences": false, "precompiledReferences": [], "autoReferenced": true, - "defineConstraints": [] + "defineConstraints": [], + "versionDefines": [ + { + "name": "Unity", + "expression": "2022.3.16f1", + "define": "UNITY_XR_VISIONOS_SUPPORTED" + } + ] } \ No newline at end of file diff --git a/ValidationExceptions.json b/ValidationExceptions.json index dca6edc..b9589bd 100644 --- a/ValidationExceptions.json +++ b/ValidationExceptions.json @@ -3,7 +3,7 @@ [ { "ValidationTest": "API Validation", - "PackageVersion": "3.0.6" + "PackageVersion": "3.0.7" } ] } \ No newline at end of file diff --git a/package.json b/package.json index 1b5b44f..aabb608 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.unity.textmeshpro", "displayName": "TextMeshPro", - "version": "3.0.6", + "version": "3.0.7", "unity": "2020.1", "unityRelease": "0a10", "description": "TextMeshPro is the ultimate text solution for Unity. It's the perfect replacement for Unity's UI Text and the legacy Text Mesh.\n\nPowerful and easy to use, TextMeshPro (also known as TMP) uses Advanced Text Rendering techniques along with a set of custom shaders; delivering substantial visual quality improvements while giving users incredible flexibility when it comes to text styling and texturing.\n\nTextMeshPro provides Improved Control over text formatting and layout with features like character, word, line and paragraph spacing, kerning, justified text, Links, over 30 Rich Text Tags available, support for Multi Font & Sprites, Custom Styles and more.\n\nGreat performance. Since the geometry created by TextMeshPro uses two triangles per character just like Unity's text components, this improved visual quality and flexibility comes at no additional performance cost.", @@ -16,12 +16,16 @@ "dependencies": { "com.unity.ugui": "1.0.0" }, + "_upm": { + "changelog": "### Changes\n- Add support for Visions OS keyboard." + }, + "upmCi": { + "footprint": "65b544a6a7b5ced5a59258197527dcf530869f4f" + }, + "documentationUrl": "https://docs.unity3d.com/Packages/com.unity.textmeshpro@3.0/manual/index.html", "repository": { "url": "https://github.cds.internal.unity3d.com/unity/com.unity.textmeshpro.git", "type": "git", - "revision": "01e57e3b7de18af9dfe9baaa0a0ff5cc4765c899" - }, - "upmCi": { - "footprint": "bfe9ad7192cdd29486fc5980b5ac7d0b3fafcec6" + "revision": "5c364f204e10eaec84fcbff640ad4d833774c1ed" } }