- Home /
Animated UI Image Sequence
I have tried importing in an image sequence to use as an animation for a screen just behind my main GUI, it seems like I can do it frame by painful frame and call to that animation with a button or code but is there an easier way to get my animations frames into an animated image sequence on a single UI image?
Answer by Derek-Wong · Feb 01, 2015 at 06:22 PM
I assume your image sequence is a sprite sheet (lets say, 3x2, 6 frames), and I did used a script to change them in sequence before. However if you don't want to do it by animation or code.....well maybe you can use a particle system (sorry that's all I can think of :( ).
I know this is not a really good way to do it, but just for some ideas...
set your image to be a 2d sprite
create a material and use it as texture
use that material in a particle system
enable Texture Sheet Animation, set suitable x and y (3, 2 for examples) and the frame over time by the graph
choose suitable start size, life time and duration, set the speed to 0
disable the shape...
Well it should be doing what you want to do, just it is a particle system lol loop it if you want
Nope, my images are separate frames or images loaded in as a numbered sequence, as I say I can do a frame by painful frame animation but it seems to me that there should be a more simple way to do this?
Then I would suggest you to pack them into a sprite sheet first, for various goods. If you really really don't want to do that, make an public array in a script and pull them one by one in the editor, and do the effect by a script, that's the easiest way to do I think.
Seemed in an experiment that when I drag all of my images in the sequence onto an empty game object it asks me to create an animation only where this animation gets stored and how it plays back I have no idea. But if I do the animations frame by frame I can do it, just with a 60 frame animation it can get rather tedious that way. BTW each animation frame is about 512 X 400 so a 60 frame sprite sheet would be a little insane I would think?
Your answer
Follow this Question
Related Questions
Checking animation playing in ieunmerator. Is there a better way to do this? 1 Answer
Unity Animator cant play the same animation twice. 2 Answers
Character won't run straight 1 Answer
Single Animation file for two different objects! HELP! 1 Answer
How to get reference to a specific Animation Clip in Animator. 0 Answers