Search Unity

Need a way to force close "Preview" in timeline by code

Discussion in 'Timeline' started by Suika, Mar 2, 2018.

  1. Suika

    Suika

    Joined:
    Nov 19, 2013
    Posts:
    33
    Model will somehow keep the pose in timeline preview when save scene, that cause a lot of problem, and you guys didn't fix almost any timeline bug in Unity 2018, so instead report another bug, I only need a way to force close "Preview" in timeline by code.

    THX

    圖片 1.jpg
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,010
    So, it looks as if there is no call to do that in the public API anymore. Previously, UnityEditor.AnimationMode.StopAnimationMode() would do this, but that no longer is the case.

    As for timeline keeping the pose when you are saving the scene, I was not able to reproduce that with some simple tests. Under what conditions is that occurring?