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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment