- Home /
How do I animate a texture to rotate and loop around an imported object?
I'm making a twister/hurricane/cyclone and I'm unable to import the texture animation from 3ds max into unity due to the skin modifier not being able to collapse, thus the other animations are lost. I was wondering if there was a way to constantly rotate the texture around the object. So, a imported texture to constantly rotating around the cylinder while it continues on it's original animation of ducking and weaving around like twisters too. I want to animate the texture to give the illusions of gusts/wind wrapping around the object... Any help people? (I'm a complete beginner, no experience in scripting). Thank you!
Hi thank you offset was what I was looking for, I created a separate animation on a separate object with an imported material and then applied it to my twister and it worked, thank you!
Answer by robertbu · Mar 26, 2013 at 11:06 PM
Material.SetTextureOffset() may be what you are looking for. If you object is uv mapped to individual sections of the texture, it won't work. There is an example script on the reference page.
I converted my comment to an answer. If this your question is answered, close it out by clicking on the check mark next to the answer.