r/Unity3D•
cdox

Texture animation help

http://pastebin.com/j7Mdn7vn So im trying to get texture animation to play. It works but it starts at random times. I want it to start at frame 1 but it usually start at around 50. But its very random and can start at whatever frame it wants. The animation got 91 frames.

So anyone know how to make it start at frame 1? I appreciate any help!

Posted Apr 7, 2014, 7:52 PM UTC

11
koyima•

You are using Time.time to control animation, depending on what your pc is doing it starts playing after Time.time = 0.

First you have to make sure you have all your resources loaded (imo), then you have to use deltaTime and the beginning (0 frame) should be whenever you want to start playing the animation (not actual zero time, which you will never achieve) and after resources.load has finished.

2