Muted Animation Tracks still generate Events

Hello. I am finding that muted animation tracks still generates AnimationEvents when the TimeLine cursor is dragged or positioned. Is this a bug?

I was hoping disable the clip’s events when the track is disabled. Is there a suggested method of disabling the execution of a track / clip’s events?
Thanks.

Here is the answer…
After the tracks are muted, the director’s playable graph must be rebuilt.

            TimelineAsset ta = (TimelineAsset)director.playableAsset;
            foreach (TrackAsset trackAsset in ta.GetOutputTracks()) {
                foreach (PlayableBinding binding in trackAsset.outputs)
                    if (binding.outputTargetType == typeof(Animator)) {
                        trackAsset.muted = true;
                    }
            }
            director.RebuildGraph();
2 Likes