- Home /
Animation Events added with code seem to be at wrong time
So I guess I kinda have two questions. Are the times shown in the animation window in seconds/fractions of seconds or are they frame values or something else entirely? I'm currently trying to add animation events to animation clips made in Unity via code. I am doing this in the editor. I notice when I look at where my events are in the animation window the times they are displaying at seem off from what my debug log says the times are as I add my newly created animation events to an array to update the animation events with. Also my times for the animation events I am placing on my animations may be things like .9834333. Does Unity not like all of the decimals in the time? Even so I'm noticing events that should be at 0.25333 appearing at say 0.23 in the animation window. Things seem off in the actual game as well even though the times listed on the animation events in visual studio as I am debugging seem proper. Help is greatly appreciated.
Your answer
Follow this Question
Related Questions
Setting keys in Animation Editor through Editor code 0 Answers
How to edit Animation Clip Settings using an editor script 2 Answers
How to get reference on current sample from animation window in editor 0 Answers
How to refresh timeline after update to AnimationClip 1 Answer
Animation editor Issue and a weird disappearing bug 1 Answer