Hi I am using a animated gif that displays "Loading..." and while it is used in game play it don't displays the dots(...). Any Idea to display animated gif. Or Any other idea that we can display a loading screen that may contain the Loading bar or something like that. thanks in advance unityboy
Unity doesn't have any support for animated gifs. It's a terrible format anyway; use a series of textures instead. --Eric
Hey dude, I am here. Better you use sequence of images (texture) to animate. Because there is no solution for animated gif in unity.
I have implemented the logic of rendering 4 images that have "Loading", "Loading.", "Loading..", "Loading...". I used GUI.Label (I have tried DrawTexture as well) to change them after certain number of frames in function OnGUI. Code (csharp): var LoadingScreens : Texture[]; function Start() { Counter = 1; i = 0; } function OnGUI() { GUI.Label(Rect(0, 0, 480, 320), LoadingScreens[i]); Counter += 1; if(Counter%100 == 0) i+=1; if (i>3) { Counter = 0; i=0; } } As a testing I used them in the menu back ground screen to render them it was working fine and the images were changing as expected. But the same Logic is not working when My level of game is being loaded after executing Application.LoadLevel("MyLevel"). Any Idea what Could be the reason. heavy processing or what ???? thanks unityboy
no after LoadLevel and until its fully loaded there is no world update nor any execution of anything. processing will continue after the load has been finished
Hi, You can use Code (csharp): Application.LoadLevelAsync("level name") istead to manage process in update function: Code (csharp): var progress:float; function soemFunc(){ progress = Application.LoadLevelAsync("level name") .progress; } function Update(){ print(progress); }
You could also try a script like the following, which makes use of Mono's System.Drawing library: http://wiki.unity3d.com/index.php/AnimatedGifDrawer
Hello, seems animated gifs works, but for some like this one.... https://blog.bufferapp.com/wp-content/uploads/2015/08/giphy-1.gif When i use the AnimatedGifPlayer to play that gif, it leaves some weird pixels at the bottom while playing.