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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Add comment