Animation.Stopfunction Stop () : voidDescriptionStops all playing animations that were started with this Animation. Stopping an animation also Rewinds it to the Start.
JavaScripts
// Stop all animations
animation.Stop(); using UnityEngine;
using System.Collections; public class example : MonoBehaviour { void Awake() { animation.Stop(); } } import UnityEngine
import System.Collections class example(MonoBehaviour): def Awake(): animation.Stop() function Stop (name : String) : voidDescriptionStops an animation named name. Stopping an animation also Rewinds it to the Start.
JavaScripts
// Stop the walk animation
animation.Stop("walk"); using UnityEngine;
using System.Collections; public class example : MonoBehaviour { void Awake() { animation.Stop("walk"); } } import UnityEngine
import System.Collections class example(MonoBehaviour): def Awake(): animation.Stop('walk') |
