Skip to content

MayuLayuPayu/Gifify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Gifify

Preview

How to use

private IEnumerator Gifify(GameObject background)
{
    var gificon = Gif.GetGifFrameFromURL("https://i.ibb.co/VgQKbBP/933301673391161344-1.gif");
    RawImage rawr_x3 = null;

    while (true)
    {
        if (!background.activeInHierarchy)
            yield return new WaitForEndOfFrame();
        else 
        {
            if (!background.GetComponent<RawImage>())
                rawr_x3 = background.AddComponent<RawImage>();
            for (int i = 0; i < gificon.Length; i++) 
            {
                rawr_x3.texture = gificon[i];
                yield return new WaitForSeconds(0.1f); //change depending on gif frame
            }
        }
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages