Wrapping mode of the animation.
// Set the wrap mode of the walk animation to loop animation["Walk"].wrapMode = WrapMode.Loop;
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { animation["Walk"].wrapMode = WrapMode.Loop; } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: animation['Walk'].wrapMode = WrapMode.Loop