Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AnimationClip.length

public var length: float;

Description

Animation length in seconds. (Read Only)

	animation.Play();
	// Wait for the animation to have finished
	yield WaitForSeconds (animation.clip.length);