ドキュメント

Unity Engine

Download Unity

Unity Engine

length

The length of the animation clip in seconds.
読み終わるまでの所要時間 1 分最終更新 12時間前

Definition

public float length { get; }

Examples

using UnityEngine;using System.Collections;public class ExampleScript : MonoBehaviour{ public Animation anim; void Start() { // Print the length of the walk animation in seconds print(anim["Walk"].length); }}