Search Unity

  1. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  2. Dismiss Notice

Help Wanted Programatically Set Root Position/Rotation in Timeline

Discussion in 'Timeline' started by LudiKha, Mar 30, 2021.

  1. LudiKha


    Feb 15, 2014
    Is there a way to programatically set the root position/rotation in timeline, e.g. via a PlayableBehaviour?

    I want to emulate the animator TargetMatching and be able to preview it through IAnimationWindowPreview.

    I've created a track, mixer & behaviour that is based on the TransformTween sample. However, I am unable to overwrite the timeline output in any way. Normally, I would add an animation job between the output and the TimelinePlayable, but this is not possible when previewing the graph, as the SetupGraph call is done before the TimelinePlayable is inserted into the preview graph.

    Any tips on how to proceed here?