I am animating a gameobject with the animator. I am matching the animation to a video I have overlade in the editor. At the moment I am having to adjust the video scrubber to get to the next position I want to keypoint, then calculate and change it in the animator. I would like to be able to control the animation scrubber with my video scrubber or vice versa.
Make sure to put any script that uses the UnityEditor
namespace either in a folder called Editor
or wrap according parts of the script with pre-processor tags (#if UNITY_EDITOR
... #endif
)