Change Values for Script Objects Via animation editor?

Is is possible to change a value for a script inside the animation editor? Essentially, I would like to change a value at different point in an Animation.

In one animation, I actually have different meshes for every frame (there is a reason for this I promise). I would like to use the animation editor to simply change the variable storing the frame number. Is this possible?

Thanks,
Kreed

Of course it is possible, but it doesn’t make sense the way you want to use it. Animations are simulated timebased! All animated values are interpolated between the keyframes. You will almost never get the value at a certain keyframe since the visual frames will be between your keyframes.

Example: You have a simple animation with 4 keyframes an animate a value the way you suggested:

Keyframe   Keytime  value
1          00:00    1
2          00:02    2
3          00:05    3
4          00:10    4

If your game has a way higher visual framerate, you will get values in between:

Time       interpolated value
00:01      1.5
00:02.1    2.0333
00:04      2.6666

There are no frames in animations, only keyframes and they got interpolated over time so it’s framerate independent.