How to animate a RawImage in UI with a series of PNG files?,How to animate a Raw Image in UI with a series of seperate PNGs?
I have a series of images that I want to be able to play back on the UI. So, I created a Raw Image, but this is where I'm stumped. The only method I can think of is to use the animation window. I add the "object: Raw Image.Texture" property, but when I click and drag all the images in it just creates a sprite renderer, and doesn't change the Texture property. I can, however, animate the Texture property by switching to the recording mode, and then manually changing the RawImage.Texture for every... single... frame. Surely, there's an easier solution, correct? Thanks for any help.,So far, I've been able to find the answers I've needed, but now I finally have to ask. I have a series of images that I want to be able to play back on the UI. So, I created a Raw Image, but this is where I'm stumped. The only method I can think of is to use the animation window. I add the object: Raw Image.Texture property, but when I click and drag all the images in it just creates a sprite renderer, and doesn't change the Texture property. I can, however, animate the Texture property by switching to the recording mode, and then manually changing the RawImage.Texture for every... single... frame. Surely, there's an easier solution, correct? Thanks for any help.
Answer by ReGaSLZR · Jan 22, 2019 at 05:55 AM
Oh my gosh! I was wondering the same thing. The Drag-and-Drop feature with SpriteRenderer works like a charm tho. But if I do it with RawImage, Unity just makes a SpriteRenderer component on my object when I actually wanted dem frames to be applied on RawImage.Texture (not on SpriteRenderer).
By the way, your question got copied-and-pasted twice, @mystman12
Your answer
Follow this Question
Related Questions
Multiple game objects playing DIFFERENT animations with a simple Mouse Over/Button Hover? 1 Answer
Can I make a dynamic wave ui with shader ? 0 Answers
Scale sprite to the size of an UI Image. 1 Answer
How can I check if a player intersects with an UI element? 0 Answers
How to show and hide a Button and don't affect the Animation on it. 0 Answers