Why there is a gap between UI?

The uibuilder settings are in the attachment. What I expect is that the icon and the textField are seamlessly next to each other. But at runtime , there is always a gap. Their border widths are both 0.


7910917--1008811--runtimeGame.png

Maybe the gap comes from margin & padding

They are all zero. I’ve checked

With the UI toolkit debugger, you should be able to find which element causes the issue

emm, good idea

Also make sure you have the runtime theme selected in the UI Builder to get the same styling that is applied in Runtime.