First, sorry for my English.
This is something that always bugs me, I forgot to ask it too many times.
When working with animation in code, we often use a float. For example, if the animation is 1s and you want to do something at 0.2s, you simply go f = 0.2s, that’s intuitive, right?
But the problem is, the time shown in animation window does not go with that. Let‘s say I put the animation at 60 frames and show it in seconds, it only shows 0s:00 to 0s:60(1s:00). The float can be f = 0.8s or f = 0.9s, so certainly the two are not the same, 0.2f != 0s:20.
Why does Unity show it that way?
What’s the easiest way to convert a float value to seconds in animation window and vice versa? Like if I want to do something at 0s:45, how to find the float equivalence of it? How to do it intuitively?
Thank you all.