Reply To: Disabling an action track from script

Slate Forums Support Disabling an action track from script Reply To: Disabling an action track from script

#1486
alteredmatter
Participant

We are trying to disable the subtitles track in the way you said for our options system to enable or disable subtitles from our manager script, but there is a problem.
This line:
var track = group.tracks.Find(t => t.name == trackName);
Is returning a clone of the track “Rendering Track(Clone)” instead of “Subtitles Track”, so it is not working as expected. In fact, the track is being enabled and disabled in the editor timeline, but if the subtitles are shown at least once, they will keep showing although we disable the track.
If we try to Find() a different track, like the FMOD one, we are getting the original and not a clone, as expected.

Any idea?

Attachments:
  1. Capture.png