Can UMG use rotated atlas

For example, there are two image production buttons. Use texturepacker to package. One of them is automatically rotated.
packer
Tick “Rotated in Source Image” in atlas.
rotated
It looks incorrect in the UMG button. If the image is not square, the “Size To Content” option is also incorrect
Logo

Is this for the desktop icon or an in game widget?

In game widget.A simple button.

There are material solutions you can use to rotate a texture. You can then use the parameters of a Dynamic Material Instance to trigger the rotation effect on the button. Create Dynamic Material Instance | Unreal Engine Documentation

The material needs to manually rotate each image. What I am doing is to package the ui image and make the atlas through texturepacker. The rotation is determined by texturepacker. “Rotated in Source Image” is also automatically checked when the atlas is imported. The same atlas is imported as rotation this time, and the next import may become non-rotation. I am looking for a way to automatically handle rotation. “bRotatedInSourceImage” is found in “UPaperSprite”, but it is only visible in the editor, I think this may be a bug, which should be handled automatically by the engine.

1 Like