Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

AnimationEventInfo.time

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public float time;

Description

The time at which the event is being fired (Read Only).

Returns the time value in seconds within the animation clip. For example, if time is 1.5f for an animation clip with a length of 2 seconds, the event fires 1.5 seconds after the animation starts. If the animation clip loops, the event fires at the same time in each iteration.