Animation.wrapModevar wrapMode : WrapModeDescriptionHow should time beyond the playback range of the clip be treated? WrapMode.Default: Read's the wrap mode from the clip (default for a clip is Once).
JavaScripts
using UnityEngine;
using System.Collections; public class example : MonoBehaviour { void Awake() { animation.wrapMode = WrapMode.Loop; } } import UnityEngine
import System.Collections class example(MonoBehaviour): def Awake(): animation.wrapMode = WrapMode.Loop |
