Step 1: Use image show ImageA。
Step 2: Use code “Image.sprite=ImageB” change image
Step 3: Use code “Image.sprite=ImageA” change image
Resault:ImageA Size is wrong。
I think the bug is ImageB has transparent make ImageA wrong
Could you please submit a bug-report and include a project to reproduce the issue, as described in this document:
Submitting a bug-report allows Unity Technologies to take a look at this issue.
After you submitted the bug-report, you receive a confirmation email with a bug-report Case number. Please post this Case number here (in this forum thread) for Unity staff to pick up.