Welcome,
Guest
. Please
login
or
register
.
February 17, 2025, 12:56:55 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UISpriteAnimation number of frames
« previous
next »
Print
Pages: [
1
]
Author
Topic: UISpriteAnimation number of frames (Read 2636 times)
nah0y
Sr. Member
Thank You
-Given: 1
-Receive: 2
Posts: 430
\o/
UISpriteAnimation number of frames
«
on:
July 08, 2012, 11:17:26 AM »
Hi !
Could you add a public property to retrieve the number of frames from an animation ?
You already have a List<string> mSpriteNames, could you make something like :
public
int
frameCount
{
get
{
return
mSpriteNames
.
Count
;
}
}
Thanks
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UISpriteAnimation number of frames
«
Reply #1 on:
July 08, 2012, 06:11:55 PM »
Sure. I've added it.
Logged
nah0y
Sr. Member
Thank You
-Given: 1
-Receive: 2
Posts: 430
\o/
Re: UISpriteAnimation number of frames
«
Reply #2 on:
July 09, 2012, 03:06:55 AM »
Great ! Thanks
And, what if someone (maybe me), make a more elaborated UISpriteAnimation script, with loop, pause, resume etc... would you take a look at it and maybe integrate it ?
Or is it useless because you're planning to do so ?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UISpriteAnimation number of frames
«
Reply #3 on:
July 09, 2012, 10:03:58 AM »
It's actually on the list of things to do here, but if you do it before us, sure!
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UISpriteAnimation number of frames