Author Topic: Why does UILabel sometimes become invisible when I use TweenScale  (Read 2870 times)

shinsugita

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Hi there

I attached 2 on the GameObject which UIWidget attached.
And this child is attached UILable.

  1. UIWidget and  TweenScalex2
  2.   |-UILable
  3.  

1st.
PlayStyle = "Once".
Duration = 1
Start Delay = 0
Tween Group = 0
Ignore TimeScale = false

2nd.
PlayStyle = "Once".
Duration = 1
Start Delay = 1
Tween Group = 0
Ignore TimeScale = false

And the UIWidget's "Anchors" Execute setting is "On Enable".

I play it by set deactive and set active like below

  1. NGUITools.SetActiveSelf(gameObject,false);
  2. NGUITools.SetActiveSelf(gameObject,true);

However... sometimes UILable's text couldn't appear.
it is active and scale is okey. but it can't show in the Game scene

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Why does UILabel sometimes become invisible when I use TweenScale
« Reply #1 on: November 04, 2015, 01:25:06 PM »
Don't scale to/from 0. Scale of 0 is invalid.