Documentation

Unity Engine

Download Unity

Unity Engine

StartTime

The time on the clip curves where the clip starts, in seconds.
Read time 1 minuteLast updated 4 hours ago

Definition

public float StartTime { get; }

Remarks

The start time isn't always 0. For example, a clip that you set with
AnimationUtility.SetAnimationClipSettings
can start later on its curves. A clip that the model importer creates from a take starts at 0, because the importer shifts the curves of the take to begin at 0. The times that you pass to a ClipSampler are times on the clip curves, between Clip.StartTime and Clip.StopTime, so don't assume that a clip plays from 0.
Additional Resources: Clip.StopTime, Clip.Length