I'm using the tranform tween track from the default playables package and is not working properly... If I move the timeline is not calculating correctly the initial and final position and is not finishing in the correct place... In the other hand, I'm using this code to setup the binding from code Code (CSharp): if (track is TransformTweenTrack && track.name == "Transform Tween Track " + index) { playableDirector.ClearGenericBinding(track); playableDirector.SetGenericBinding(track, go); foreach (var clip in track.GetClips()) { var t = clip.asset as TransformTweenClip; if (t == null) { continue; } playableDirector.ClearReferenceValue(t.startLocation.exposedName); playableDirector.ClearReferenceValue(t.endLocation.exposedName); playableDirector.SetReferenceValue(t.startLocation.exposedName, Origin.transform); playableDirector.SetReferenceValue(t.endLocation.exposedName, fakeLayoutItemGameObject.transform); } } and is setting values properly (I can see them in the inspector) but then the object is not moving... If I do this manually, then again the transform is moved but not to the final correct position... any clue? Sergi Gil
If you are trying to change bindings while the timeline is playing, they won't be updated. You can call playableDirector.RebuildGraph() - but it's expensive, any definitely not recommended to do each frame.