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
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -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.
0 commit comments