Search Issue Tracker
By Design
Votes
1
Found in
2017.4
2019.3.3f1
2020.2
Issue ID
1227952
Regression
No
UIBehaviour.OnRectTransformDimensionsChange() is called before Awake()
Steps to reproduce:
1. Open user's attached project "UnityBugOnRectTransformDimensionsChange.zip"
2. Open "SampleScene"
3. Enter Play mode
4. Notice the console that UIBehaviour.OnRectTransformDimensionsChange is called before Awake()
Expected results: Awake() is always called first
Actual results: UIBehaviour.OnRectTransformDimensionsChange is called before Awake()
Reproducible with: 2017.4,38f1, 2020.2.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
- Entering “NaN” or “Infinity” values in Game Object Brush Orientation value fields spams Quaternion-related errors in the Console and persists unless value is undone in Tile Palette window
- An InvalidOperationException is thrown in the Editor when using On-Tile Rendering with the Mock HMD plug-in
- Unity UI does not trigger "OnFocusLost" and doesn't refresh when focusing on other Windows in the Editor
- Project Auditor's settings cannot be searched in the Preferences window
- Crash on SerializableManagedRef::CallMethod when performing various Unity operations
Resolution Note (2020.2.X):
OnRectTransformDimensionsChange is called before Awake/OnEnable/Start - current behavior is by design