Hello.
I’ve created a custom animation track in the latest cinemachine version 3.0.1. This track simply inherits from unity’s default AnimationTrack. (Reason being since I need a system that doesn’t rely on exposed references, and instead dynamically binds animation objects to be able to reuse a timeline for different objects. And additionally I want to add some functionality and properties to the track for my own systems.)
Everything worked fine, except for the recording feature, which turns on, but no keyframes are written.
After checking the timeline code, I noticed that the reason was that in several methods, a direct comparison with typeof(AnimationTrack) was used, instead of checking for all inheriting types. This also affects the menu creation for the context menu.
After modifying these to include any class that inherits from AnimationTrack, everything works perfectly.
Can I submit these changes somewhere, since I’m probably not the only one who would like to customize an animation track with a functional recording feature.
cheers,
shma