Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: shinsugita on November 03, 2015, 09:25:15 PM
Title:
Why does UILabel sometimes become invisible when I use TweenScale
Post by:
shinsugita
on
November 03, 2015, 09:25:15 PM
Hi there
I attached 2 on the GameObject which UIWidget attached.
And this child is attached UILable.
UIWidget and TweenScalex2
|-
UILable
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
NGUITools
.
SetActiveSelf
(
gameObject,
false
)
;
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
Title:
Re: Why does UILabel sometimes become invisible when I use TweenScale
Post by:
ArenMook
on
November 04, 2015, 01:25:06 PM
Don't scale to/from 0. Scale of 0 is invalid.