Timeline and script on objects

hey guys,

ok so I have been diving more and more into timeline and came across a roadblock sorry if this seems obvious…

so im using timeline to repeat moving an object from side to side, I also put a simple script on said object to rotate on a certain axis.

The problem is that timeline invalidates the script on the object and was wondering is that by design and i cant get around it or am i doing something wrong?

If you are using the animation track to translate the object from side to side, it will also write the rotation. This is a limitation of the animation track.

If your script rotates the object in a LateUpdate() call, then you can overwrite the rotation written by timeline.

ok, thanks for the info sean will give it a whirl!.

Maybe im doing something wrong, change rotate line of code to LateUpdate and it still isnt rotating?

scratch that, wrapping it in another gameobject fixed it for me, thanks again! @