C# Timer With images.

I’m searching for a script in C# with Images, That every so often a random picture comes in screen.
But i can’t make this code ;( Can i one help me?

Thanks.

Well, the approach I would take for this is to use a Coroutine for the timing, and a basic random number generator for selecting which image to pop up. I would also put the images in a sprite sheet/sprite atlas, and then render them using the OnGUI method. (which is a good approach if you want it to show up in 2D, and overlap any of the 3D content) The GUI.DrawTextureWithTexCoords() function will allow you to implement a solution like that with relative ease. Just store the Rect objects for each image frame in a List, and then use the random number generator to pick an index at random to retrieve from the List. Pass that randomly selected Rect object to the GUI.DrawTextureWithTexCoords() function, and you’re done.