Author Topic: TweenScale and UIButton / UILabel problems  (Read 6272 times)

Tripwire

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 163
    • View Profile
TweenScale and UIButton / UILabel problems
« on: June 23, 2014, 07:57:57 AM »
Hi,

I have the following screen:
-Container
--Panel
---ScrollView
----Grid
-----Button01 container
------ButtonSprite
------ButtonLabel
-----Button02 container
------ButtonSprite
------ButtonLabel
-----Button03 container
------ButtonSprite
------ButtonLabel

With a total of 14 buttons.

The screen get's TweenScaled to Vector.One when the user clicks on a button and when the user clicks a button in the scrollview is scales back to the starting state.

The starting state of the screen is:
x: 0.01f
y: 0.01f
z: 0.01f

When TweenScaling not all buttons should be active so sometimes the first 5 buttons are active and sometimes all the buttons are active. The problem I'm having, is when I TweenScale the screen get's active but doesn't always show the label below the buttons or even the whole button with the labels. When I click on the button the label show up. When I look in the Hierarchy the buttons are active, the labels are active but they won't show up :(.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TweenScale and UIButton / UILabel problems
« Reply #1 on: June 24, 2014, 03:15:55 AM »
That seems odd. Can you give me a repro case to look at?

Tripwire

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 163
    • View Profile
Re: TweenScale and UIButton / UILabel problems
« Reply #2 on: June 25, 2014, 04:12:31 AM »
That seems odd. Can you give me a repro case to look at?

I'll try and reproduce it tonight. If I can't reproduce it, can I send you the project so you can take a look at it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TweenScale and UIButton / UILabel problems
« Reply #3 on: June 25, 2014, 07:30:25 AM »
Depends on how large of a project we're talking about. Generally the bigger the project the less likely is it to be useful in determining the issue.