public WrapMode wrapMode ;

描述

该动画的包裹模式。

默认情况下,wrapMode 被初始化为在 Animation component's 包裹模式中设置的值。

using UnityEngine;
using System.Collections;

public class ExampleScript : MonoBehaviour { public Animation anim;

void Start() { // Set the wrap mode of the walk animation to loop anim["Walk"].wrapMode = WrapMode.Loop; } }