Author Topic: Problem with UIButton  (Read 3638 times)

marf

  • Guest
Problem with UIButton
« on: April 27, 2012, 11:53:13 AM »
Hi, I have a problem with the UIButton component if I put it as children of an empty gameobject when I play the game and click it, the texture appears in the worng place.

Here's an image:



littlemuggo

  • Guest
Re: Problem with UIButton
« Reply #1 on: April 27, 2012, 11:59:50 AM »
What are the details of the button? Do you have tweening?

getluky

  • Guest
Re: Problem with UIButton
« Reply #2 on: April 27, 2012, 12:17:49 PM »
Almost looks like you just don't have a background texture. Try setting your UICamera clear flags to solid color and see if that fixes it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with UIButton
« Reply #3 on: April 27, 2012, 06:03:20 PM »
Almost looks like you just don't have a background texture. Try setting your UICamera clear flags to solid color and see if that fixes it?
Yup that's exactly what it looks like. Clear flags are set to either nothing, or only depth.

marf

  • Guest
Re: Problem with UIButton
« Reply #4 on: April 28, 2012, 07:16:46 AM »
Ok, now there's another problem, when i click it the button change is postion then it return to the correct one.

This is a video that explain the problem: http://youtu.be/bsBYX3enK9o
« Last Edit: April 28, 2012, 07:23:48 AM by marf »