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
- Tile Palette grid is moved after entering Play Mode
- Tile Palette Edit mode turns off in Play Mode
- The Editor crashes when Generating Font Atlas in the Font Asset Creator with “9999999999” padding and 256x256 Atlas Resolution
- [iOS] An “ArgumentNullException” error is thrown when GetIntroductoryPriceDictionary() method is called
- Font Import Settings documentation page is missing when the documentation button is pressed in the Inspector window
Add comment