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
}
}
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
MayuLayuPayu/Gifify
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published