Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Nov 06, 2016 at 06:35 PM by tanoshimi for the following reason:

Problem is not reproducible or outdated

avatar image
-1
Question by Zitoox · Nov 03, 2016 at 05:24 PM · animatoranimationswalkingupsetting

Setting up animator

Okay, so... I solved my last question and i am about to accept the answer.

Anyway, i have some nice animations for my character, but i am having a problem. As i said before, i am a horrible animator, and i always tried to avoid the animator, but i have no chance, i am going to make something complex.

I am using the First Person Character, and i am using a rigged model as it's body/corpse. I also have all the animations (dying,walking,jumping,etc...). The problem is that i don't know how to setup the animator.

Could someone write a tutorial for me or something? Please don't just link a page or video. I wanted to learn how to make for an example:

If player is holding W, then continue making the forward walking animation. If he stopped, then make the stop walk animation.

Could someone help me? I would really appreciate if someone could help me on this. Oh, and i am using animator, i am NOT using animation clips.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tanoshimi · Nov 06, 2016 at 06:34 PM 1
Share

"Could someone write a tutorial for me or something? Please don't just link a page or video". There are plenty of good tutorials already out there, like this or this, not to mention the manual. Why should anyone spend time and effort rewriting the same information all over again just for you? It creates no new knowledge, makes additional noise, and takes time and attention away from answering other questions on this site, generally making UA less useful for everyone.

1 Reply

  • Sort: 
avatar image
0

Answer by iAmAwsum · Nov 04, 2016 at 09:10 PM

Add an Animation Component to your Player then in the script:

 if(Input.GetKey(KeyCode.W)) {
 gameObject.GetComponent<Animation>().Play("WalkAnim");
 }
 if(!Input.GetKey(KeyCode.W)) {
 gameObject.GetComponent<Animation>().Stop("WalkAnim");
 }

Also don't forget to go into Debug mode in Unity and set your animations into Legacy mode.

Read This and This

This is a very basic code just to demonstrate what you can do. You can also use Animation Events. Event System

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Zitoox · Nov 06, 2016 at 05:06 PM -1
Share

The problem is that everytime i do this my animations get deleted.

Follow this Question

Answers Answers and Comments

60 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Help with Unity 3D animator (3D game) 0 Answers

Losing Animator state on Disable/Re-enable? 0 Answers

Realistic walking. 1 Answer

Unity freezes when I run animation. How do I fix this? 1 Answer

Animation Impulse System? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges