Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » HELP » Help (General) » Animation problem

Animation problem

Go down  Message [Page 1 of 1]

1 Animation problem on Wed Aug 06, 2014 11:57 am


Member [Lv. 0]
Member [Lv. 0]
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

View user profile

2 Re: Animation problem on Wed Aug 13, 2014 2:54 pm

Ninjaboy follower

Member [Lv. 3]
Member [Lv. 3]
Try this:

using UnityEngine;
using System.Collections;

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

View user profile

Back to top  Message [Page 1 of 1]

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