Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.2.9f1
Issue ID
1085381
Regression
No
Canvas.pixelRect returns the size of the Inspector when called in OnValidate()
Steps to reproduce: (repro.mp4)
1. Open the attached repro project
2. In SampleScene select Canvas GO
3. In the Inspector, locate Canvas Size Logger script and change W/H values to trigger OnValidate()
4. Resize the Inspector and trigger OnValidate()
5. Notice that the values are changing according to the size of the Inspector
Expected result: Canvas.pixelRect in OnValidate() returns the size of the Canvas
Actual result: Canvas.pixelRect in OnValidate() returns the size of the Inspector
Reproducible with: 2017.4.12f1, 2018.1.9f2, 2018.2.11f1, 2018.3.0b4, 2019.1.0a3
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- UnityLinker causes crash when outputting snapshot data for very large projects
- Camera Preview does not detect multiple cameras with same GameObject name
- Crash on TypeTreeIterator::Children() when renaming a corrupted asset while Asset Serialization is set to Mixed
- Cameras (Camera.targetDisplay) render only to Display 0 in the Player when Multi-Display setup is used and DX12 API is set
- [Vulkan] _CameraOpaqueTexture produces a feedback effect on Android Adreno devices when using Vulkan
Resolution Note (2019.1.X):
low priority and minor or cosmetic issues. likely won't fix.