Element can not click when setting negative scale


#1

I tried to mirror flip the UI element by setting the scale to -1,all seems right expect I can’t click it anymore,the click event just not fire.Is there anyway to slove this?


#2

Indeed I was able to reproduce this, seems to be messing with the picker used to detect clicks on the element. This seems like a bug or missing feature, not sure if negative scales are supported on the elements.

Could you log this on the engine repo? It might have an easy fix.


#3

Would rotating the element 180 degrees be a usable workaround for your element? You may need to set the material culling to “None” or “Front” to make it visible once rotated.


#4

The element component should have a flip X/Y attribute added like the Sprite component :thinking:


#5

That seems sensible to me.