Unity 2d Animation Package Code Example


Example: unity animation 2d c#

using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour {     public Animation anim;    void Start()     {         anim = GetComponent<Animation>();         foreach (AnimationState state in anim)         {             state.speed = 0.5F;         }     } }

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable