Welcome,
Guest
. Please
login
or
register
.
March 28, 2025, 08:14:14 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Is there a way to make a flashing UILabel?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Is there a way to make a flashing UILabel? (Read 1511 times)
TokyoDan
Jr. Member
Thank You
-Given: 0
-Receive: 0
Posts: 53
Is there a way to make a flashing UILabel?
«
on:
November 17, 2014, 03:03:33 AM »
I want to make a message that flashes "Connecting..." when my game is accessing the internet. I want to do this with a UILabel. Is there an easy way to do this?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Is there a way to make a flashing UILabel?
«
Reply #1 on:
November 17, 2014, 09:22:18 AM »
void
Start
(
)
{
StartCoroutine
(
FlashMyLabel
(
)
)
;
}
IEnumerator FlashMyLabel
(
)
{
UILabel lbl
=
GetComponent
<
UILabel
>
(
)
;
for
(
;;
)
{
lbl
.
enabled
=
!
lbl
.
enabled
;
yield
return
new
WaitForSeconds
(
0
.
25f
)
;
}
}
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Is there a way to make a flashing UILabel?