1
\$\begingroup\$

In my Unity Game, the Image on my UI Panel got replaced with an "X" instead of the Image it is supposed to be, I tried adding a different image to the panel and making a new panel, but it still would display the image as an "X", here is an image. The panel's image is replaced by an "X"

\$\endgroup\$
4
  • \$\begingroup\$ Can you walk us through the steps needed to reproduce this problem in a new, empty project? Once we can reproduce the problem, we can test proposed fixes to be sure they'll work for you. \$\endgroup\$ Commented Jul 3, 2023 at 21:39
  • \$\begingroup\$ I don't know how to reproduce this problem though, I don't know how it even started, so unfortunately I cannot provide steps to reproduce this error, sorry. \$\endgroup\$ Commented Jul 3, 2023 at 22:30
  • \$\begingroup\$ Then you can work subtractively: make a copy of the project that has the problem, and start deleting stuff from it. Delete as much as you can while still observing the problem with new images you import. That helps narrow down the potential contributing factors. \$\endgroup\$ Commented Jul 4, 2023 at 1:37
  • \$\begingroup\$ It shows that you are looking at the UI element back side, i.e. its dimensions/size is flipped. Because of how relations between dependent RectTransforms work, under some screen sizes some elements can get flipped into negative size. \$\endgroup\$ Commented Jul 4, 2023 at 16:03

1 Answer 1

1
\$\begingroup\$

enter image description hereenter image description here [enter image description here

\$\endgroup\$
2
  • \$\begingroup\$ you have to set these values ​​right.. \$\endgroup\$ Commented Jul 4, 2023 at 10:40
  • \$\begingroup\$ This answer would be more useful if it described how a user can identify what values are "right" or "wrong" for fixing this problem. \$\endgroup\$ Commented Jul 4, 2023 at 12:15

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.