Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.

    Read our full announcement for more information and let us know if you have any questions.

Question Mute/remove an override track in runtime only

Discussion in 'Timeline' started by Camisado32, Jan 6, 2023.

  1. Camisado32


    Jun 16, 2016
    I am looking to add small variations to a cinematic that can be toggled during runtime. It looks like I can do that using override tracks and it was easy enough to get the TrackAsset and mute it then rebuild the graph to get that effect but I would rather it not modify the asset and only affect runtime objects.

    I could probably set the weight of the associated PlayableOutput to 0 or null the target but I cannot figure out how to get the PlayableOutput for that track to do so. Since it is a child track it is not accessible through PlayableGraph.GetOutput() and the PlayableOutputs do not seem to have a way to navigate their branches.

    Playables do reference their branches so I could search for the right one but I'm not sure how to test if it is the Playable for the track or how to access the PlayableOutput from it.

    Is there a way to mute or remove the effects of an override track that only affects runtime objects? Also is there a way to reference a track in the inspector so I don't have to use the name and search for it?

    Thank you