Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

How to record zero value in timeline?

Discussion in 'Timeline' started by mmilne, Jun 1, 2018.

  1. mmilne

    mmilne

    Joined:
    Sep 13, 2014
    Posts:
    58
    Many times I'd like to start from zero but I can't insert a keyframe with zero value. For example, I'd like to rotate a cube around X-axis from 0 to 90. To do this I need to create a keyframe with 0 value then a few frames away create another one with 90 value. The interface won't let me simply insert a 0 value. As a workaround, I need to insert a non-zero number then set the value to zero in the animation clip.

    Does anyone know how to insert a zero value in timeline?
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,035
    If the value is already 0, you can right-click on the property in the inspector (e.g. transform position property) and use the context menu to add a key.