Problem UI button are sliced after exporting

Hi, sorry for the following mistakes and the time you will loose by answering my question.

I have one Menu scene where i have a text and three buttons. The problem is that my buttons are sliced when i make them bigger or just when they are bigger than approximatly 41px.

Bigger the buttons are, bigger the number of slice is. In my computer, everything is working perfectly, but when i export it to my phone, it’s sliced. I’ve tried everything, so as you can see in the following screenshot, nothing is working (i’ve made more buttons to make more tests)

I don’t have this problem with unity remote, but it’s totaly different sure. Basicaly, my canvas is like that : and my buttons : http://tinyurl.com/gq5d6cd

But when i try to make them bigger, they are sliced like on the first screenshot.

If you couldn’t help finding the source of this problem, maybe you could help me to find a way to do the same thing (button + img) without using something that will make me have this sliced button.

Thank you a lot in advance !

Thats strange. What version of Unity are you using?
What are the settings on the Camera, the clear flags?
Are you using sprites or textures? Are you using the packing tag?
What OS is the phone?

1 Like

Thank you for your answer, you give me hope.

I am using the version 5.3.6 (not the latest to keep the possibility to export to web player).
2861357--209406--camunityprobleem.PNG
This is for my camera.

I am using sprite for the UI and i’m not using pcking tag.
My phone is an android phone with the latest update of android.

I have try lot of things with the settings, and the only thing i’ve found, is that if i choose a button with a SQUARE size (ex : 100x100px), it’s working ! But my buttons are rectangular.

2861357--209407--bouton.PNG
So if i click out of my button image but in the borders, it’s like if i had click on the button.

Thank you very much in advance !

I cant see anything wrong with the camera setting. Can you submit a bug report with the project and post the bug id here?
Why do you need the webplayer, most people won’t be able to use it. Have you tried WebGL instead?

I’m sorry but, i don’t know how to submit a bug report. I don’t really know what do you mean by this.
It’s true that i could update Unity, even if i don’t know anything about WebGL.

I’ve found a temporary solution. As i said before, when my buttons are in a square shape, it’s working, i’ve rescale the border of the buttons (i don’t realy know how before i’ve tried many things) and it’s working like it, even if the border are not very close to the button.
I think this problem come from my device. I’ve tried on the device of my friend, and it seem working.

Thank you again.

Here is how to report a bug: Unity QA: Building quality with passion
Its worth reporting it even if you have a workaround, would you not rather it just worked?
Also mention the device you are using so we can make sure we test with the same.

Thank you for your answer. The problem is that in the report, i won’t be able to tell how to do it again, because it’s just ahppened when i create a basic button with canvas (and when the button is not in a square shape).
My device is a Samsung Galaxy Trend Lite GT-S7390G.

Just say that in the report, we can at least try and recreate the issue :slight_smile:

1 Like

I will do it :slight_smile: Thank you very very much for all your help.
Have a nice day

1 Like