UnityNinja Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

UnityNinja CommunityLog in

UnityNinja - Video Game Development Community, including Resources, Forums, Marketplace & More.


descriptionAnimation problem EmptyAnimation problem

more_horiz
Hello guys I have a problem with animation when I press key who have animation it all stops I don't know what to do please help

descriptionAnimation problem EmptyRe: Animation problem

more_horiz
Try this:

Code:



using UnityEngine;
using System.Collections;

public class AnimationScript : MonoBehaviour {
   void Update(){
      if (Input.GetKeyDown (KeyCode.K)) {
         animation.Play("Walking animation", AnimationPlayMode);
            }
   }
   
}


privacy_tip Permissions in this forum:
You cannot reply to topics in this forum
power_settings_newLogin to reply