You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- If you need specific version, you can specify like this ```https://github.com/kwan3854/TextMeshProMax.git#v0.2.0```
101
+
- If you need specific version, you can specify like this ```https://github.com/kwan3854/TextMeshProMax.git#v0.6.0```
102
102
103
103
> [!TIP]
104
104
> You can see inline comments in the code editor by enabling this option in the Unity Editor: `Edit` -> `Preferences` -> `External Tools` -> `Generate .csproj files`
@@ -123,6 +123,12 @@ Retrieve the **Rect information** for specific strings rendered by a `TMP_Text`
123
123
-**Returns**:
124
124
- A list of `TextRectInfo` containing `Rects` and the `TargetString`.
125
125
126
+
> [!IMPORTANT]
127
+
> **Coordinate System**
128
+
> The returned `Rect` values are in the **local space of the text object's transform**.
129
+
>
130
+
> **Breaking Change Notice**: In versions prior to `0.6.0`, the `Rect` for `TextMeshProUGUI` was returned in the Canvas's local space. This has been changed to consistently use the text object's local space for all `TMP_Text` types. Please update your implementation accordingly.
131
+
126
132
##### Code Example
127
133
```csharp
128
134
usingRuntime.Helper;
@@ -172,6 +178,13 @@ Attempt to retrieve the **Rect information** for specific strings rendered by a
172
178
-**Returns**:
173
179
-`bool`: `true` if successful.
174
180
181
+
> [!IMPORTANT]
182
+
> **Coordinate System**
183
+
> The returned `Rect` values are in the **local space of the text object's transform**.
184
+
>
185
+
> **Breaking Change Notice**: In versions prior to `0.6.0`, the `Rect` for `TextMeshProUGUI` was returned in the Canvas's local space. This has been changed to consistently use the text object's local space for all `TMP_Text` types. Please update your implementation accordingly.
186
+
187
+
175
188
##### Code Example
176
189
```csharp
177
190
List<TextRectInfo>results;
@@ -201,6 +214,12 @@ Retrieve **Rect information** for Ruby strings, including body and Ruby text.
201
214
-`Rects`: A list of `Rect` objects for the string or line.
202
215
-`TargetString`: The concatenated plain text of the Ruby string.
203
216
217
+
> [!IMPORTANT]
218
+
> **Coordinate System**
219
+
> The returned `Rect` values are in the **local space of the text object's transform**.
220
+
>
221
+
> **Breaking Change Notice**: In versions prior to `0.6.0`, the `Rect` for `TextMeshProUGUI` was returned in the Canvas's local space. This has been changed to consistently use the text object's local space for all `TMP_Text` types. Please update your implementation accordingly.
222
+
204
223
##### Code Example
205
224
```csharp
206
225
usingRuntime.Helper;
@@ -255,6 +274,12 @@ var rects = text.GetRubyStringRects(rubyString, TextFindMode.All);
Attempt to retrieve the **Rect information** for complex Ruby strings rendered by a `RubyTextMeshProUGUI` object. Returns `true` if successful, `false` otherwise.
257
276
277
+
> [!IMPORTANT]
278
+
> **Coordinate System**
279
+
> The returned `Rect` values are in the **local space of the text object's transform**.
280
+
>
281
+
> **Breaking Change Notice**: In versions prior to `0.6.0`, the `Rect` for `TextMeshProUGUI` was returned in the Canvas's local space. This has been changed to consistently use the text object's local space for all `TMP_Text` types. Please update your implementation accordingly.
282
+
258
283
#### 3. Multi-Line Support
259
284
The library can calculate `Rect` values for text that spans multiple lines. Whether the line breaks are due to manual newlines (`\n`) or automatic text wrapping applied by TextMesh Pro, the library handles them seamlessly.
0 commit comments