Search Issue Tracker
Fixed in 4.6.X
Votes
0
Found in
4.6.0b12
Issue ID
618295
Regression
No
uGUI: Content Size Fitter drives Anchors even when disabled
To reproduce:
1. Open project
2. Open 'test' scene
3. Select 'Panel' gameobject in Hierarchy
4. In 'Content Size Fitter (Script)' component change 'Vertical Fit' to PreferredSize
5. Vertical Anchor of 'Panel' ('Stretch') is being changed to 'Bottom'
6. Disable 'Content Size Fitter (Script)' component
7. Change 'Anchor Preset' to 'Stretch/Stretch' (To preset in lower right corner)
8. Anchor Preset doesn't change to 'Stretch/Stretch'
Possible workarounds:
1. Remove disable 'Content Size Fitter (Script)' component from gameobject
2. Change 'Vertical Fit' to 'Unconstrained' in disabled 'Content Size Fitter (Script)' component
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Default Preset application and Reset() method execution order is different when adding a Component via the Inspector versus calling Reset via the Component context menu
- Scene view is not outputting HDR when the "Use HDR Display Output" option is enabled, DX12 is selected as the Graphics API, and URP/HDRP is in use
- Sprite Atlas results in suboptimal packing even when "Allow Rotation" is enabled
- References placed in a UnityEvent change to the same reference when multi-selecting their GameObjects
- "ShadowCaster2D" Component doesn't work when the "Casting Source" is set to "Polygon Collider 2D"
Add comment