Search Issue Tracker
Duplicate
Votes
1
Found in [Package]
1.0.0-preview.14
Issue ID
1325952
Regression
No
Paddings and margins appear in Play Mode using UI Document component when there are no paddings and margins in UI Builder
How to reproduce:
1. Open attached project "New Unity Project.zip"
2. Open "SampleScene" scene
3. Enter Play Mode
Expected result: There is padding and margins around the button
Actual result: There is no padding and margins around the button
Reproducible with - 1.0.0-preview.14 (2021.2.0a14)
Not reproducible with (package not supported, errors) - 2018.4, 2019.4, 2020.3, 2021.1
Comments (1)
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
- Different text alignment in the column header in Entities "System" window
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
- PolySpatial “Trying to set shader on a Material Variant.” error is printed in the console when entering Play Mode
- Error “Shader error in 'YSCloudCover': call to 'tex3D' is ambiguous at Assets/YSCloudCoverText.shader(606) (on d3d11)“ is present when compiling tex3D shader with DXC
- Placeholder asset is not loaded with Advertisement Legacy sample when using the latest version of the package
nafmisc
Apr 15, 2021 23:36
I think you might have flipped your expected and actual results.
I expect there should be _no_ paddings and margins around the button (both in UI Builder and Play Mode) because the * USS specifies such.
But the actual result is that there are paddings and margins (in Play Mode).