Search Issue Tracker
By Design
Votes
0
Found in
5.6.1f1
Issue ID
919933
Regression
No
RectTransform.GetWorldCorners returns incorrect values
RectTransform.GetWorldCorners returns incorrect values when called from the third party component. When called from the gameObject itself, it calculates values correctly.
To reproduce:
1. Download attached project "Swipe.zip" and open in Unity
2. Open "test" scene
3. Enter to Play mode
4. Click on the red square and start dragging it to the left. Release the mouse button.
Note: Observe values returned by the GetWorldCorners in the console - all the values will be the same (these are values taken from different sides i.e. rectTransforms).
To observe the correct behavior:
1. Re-assign the SwipeRect component to the SwipeRectHorizontal gameObject (click on SwipeRect component, click Copy component, click Remove Component, click Paste Component as new)
2. Enter to Play mode
3. Click on the red square and start dragging it to the left. Release the mouse button.
Note: Observe values in the console - they are now all different and correct. (also, observe swipe component working properly).
Note: This issue appears on both Windows and OSX
Reproduced on Unity 5.5.4f1, 5.6.1p4, 2017.1.0b9 and 2017.2.0a3
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Incorrect Shader keyword activation for Shadows when no Light is present in URP
- Editor freezes when loading a specific AssetBundle
- WebGPU builds with Multithreading enabled crash on Safari
- Set as Value in UI Builder doesn't work across all properties.
- Reorderable ListView inside a ScrollView has a glitchy behavior when trying to reorder items
Add comment