Search Unity

"UniGif" GIF image decoder for Unity - now available for free on GitHub

Discussion in 'Assets and Asset Store' started by WestHill, Jan 9, 2015.

  1. WestHill

    WestHill

    Joined:
    Oct 29, 2012
    Posts:
    174
    I added a new asset on GitHub.
    "UniGif" is GIF image decoder for Unity.

    UniGif - https://github.com/WestHillApps/UniGif



    Get a texture list by decoding a GIF file in runtime.
    Supports GIF87a or GIF89a format. (Animation, Transparent, Interlaced, etc)

    It is made with Unity4.3.4 (Mac, Win, Android, iOS), work probably also in other versions.
     
    Last edited: Jan 9, 2015
    mgear likes this.
  2. dhamil

    dhamil

    Joined:
    Nov 10, 2014
    Posts:
    4
    Hello WestHill,

    Very nice tool!

    I have a question about the possible "lock up" in GetTextureList, when does it occur?
    I haven't run into any problems yet and I would like to avoid using GetTextureListCoroutine so I would like to know if it's safe to continue using GetTextureList.

    Cheers!
    David
     
  3. masterchop

    masterchop

    Joined:
    Oct 9, 2015
    Posts:
    39
    Is there a way to load the gif in the background?
    I am working with android and its very slow and the entire scene froze until all gif are downloaded from the internet.
    I want to load them from memory but it doesnt find them, it work in the editor.
     
  4. CesarNascimento

    CesarNascimento

    Joined:
    Mar 26, 2013
    Posts:
    15
    You saved me, thanks!
     
  5. thecotanak

    thecotanak

    Joined:
    Sep 2, 2012
    Posts:
    12
    Hello, loved your work! Thanks.
    I hope you're still answering to this post.

    I'm using your asset to play a gif from StreamingAssets folder and playing perfectly fine. But after getting file data, screen freezes for 10-15 seconds before gif starts playing. Everything freezes. Why? How can I prevent this?
     
  6. WestHill

    WestHill

    Joined:
    Oct 29, 2012
    Posts:
    174
    I updated UniGif.
    Changed the decoding process to coroutine, so please check it.
     
  7. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    988
    Hey folks, is this still working well in 5.6?
     
  8. WestHill

    WestHill

    Joined:
    Oct 29, 2012
    Posts:
    174
    It works perhaps.
     
  9. ctek

    ctek

    Joined:
    Sep 5, 2017
    Posts:
    3
    This works in 2017.2 as i got it after getting frustrated with the VideoPlayer API, only drawback is it takes a while to load the GIFs , if i had more knowledge id look into optimizing that process , other than that in 1 hr I set up a test app and got the desired result after wasting 2 goddamn days on the Unity VideoPlayer API path.

    So thank you WestHill for this great library and making it available for free.
     
    WestHill likes this.