Version: 2021.3
言語: 日本語
public float time ;

説明

現在のアニメーションの再生時間。

If the time is larger than length it will be wrapped according to wrapMode. The value can be larger than the animations length. In this case playback mode will remap the time before sampling. This value usually goes from 0 to infinity.

using UnityEngine;
using System.Collections;

public class ExampleScript : MonoBehaviour { public Animation anim;

void Start() { // Rewind the walk animation anim["Walk"].time = 0.0f; } }