|
Is there a way of playing animated GIFs through iPhone Unity? Converting to a movie as an intermediate format wouldn't be an option unless it could be done on the fly.
(comments are locked)
|
|
Aisde from tiling the animation to one texture, you can cycle through individual texture frames:
On the more complex end of the spectrum, you can script an animated .gif parser and use actual animated .gif files. For smaller sizes the speed would probably be acceptable. Don't know which script is faster / more efficient: Eric's or Joachim's (and here's an Extended version).
Nov 25 '11 at 03:56 PM
Cawas
how come everytime i copy and paste someones script from here i get errors and cant play i did nothing to your script and it wont play im starting to get frustrated nothing seems to work for me
Feb 01 '12 at 09:31 PM
kidrockkenny
@kidrockkenny I'll try to tell this in the (least) sweetest way possible: you're doing it wrong. Now get back to your homework!!
Feb 02 '12 at 12:58 PM
Cawas
(comments are locked)
|
|
Short answer: no. Long answer, you can't play animated gifs, you can play movie textures on iPhone either. So depending on the size of the animation, you'll need to tile the animation to one texture and animate the tiles. Although it's meant for Second Life, it should work for Unity as well: link.
(comments are locked)
|
|
There is a neat little script in the Unity Wiki that allows to "play" a series of textures without having to put them in a single one. You can also specify how many frames... very clean and effective. BUT you must convert your gif to a Unity readable format. Is there a link with this information in a tutorial please dude?
Nov 11 '11 at 02:41 AM
MightyMatty
That's the script Eric already quoted, made by himself: http://www.unifycommunity.com/wiki/index.php?title=Texture_swap_animator
Nov 25 '11 at 03:51 PM
Cawas
(comments are locked)
|
