Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Gifs Not supported?!? How do I take a Gif as an input and display it?

Discussion in 'Audio & Video' started by TheBurntOnion, May 8, 2024.

  1. TheBurntOnion

    TheBurntOnion

    Joined:
    Dec 14, 2017
    Posts:
    1
    Pretty much title, I have a project for a media company, they asked me to add an input for any gifs they would like and have it displayed on an object as an image or texture it doesn't matter, but it must be a gif and it must be animated, I didn't even have the forethought that unity doesn't support gifs... so now what can I do? I thought about turning everything they send intro .mp4 and then setting it but that seems to be reaching the telephone on my right ear with my left hand.

    Would appreciate your amazing insights
     
  2. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,606
    Unity doesn't support gifs so the best you could do is probably taking the gif frames apart manually somehow and putting them in a sprite sheet or texture array, then playing them back.
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,551
    adamgolden likes this.