• 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 /
avatar image
0
Question by darjosh012 · Aug 07, 2016 at 01:22 PM · animationmovementproblemaunits

How to move character with specific units with animation?

I'm having trouble making the character walk with specific units including animation. I used transform.translate() and anim.SetFloat() but it's not animating . I'm using Ethan character. Which code should I use? Thanks!

Comment
Add comment · Show 4
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 Cherno · Aug 07, 2016 at 06:32 PM 1
Share

What do you mean by "specific units"?

avatar image darjosh012 · Aug 10, 2016 at 06:52 PM 0
Share

@Cherno Example if i click a button, the character will move 9f to the z axis with walking animation. If I use trasform.traslate(), it has no anima and it's like teleporting. Can you help me? :) Sorry for my english.

avatar image Cherno darjosh012 · Aug 10, 2016 at 08:02 PM 1
Share

You can do two things. If the motion is always the same, then just create an animation clip and set the keyframes accordingly (by changing the transform.position).

If the characters should move more flexibly, then use Vector3.Lerp along with the transform.position and target position. The Scripting API has examples on how to use it.

avatar image darjosh012 Cherno · Aug 14, 2016 at 02:13 AM 0
Share

I'm just a newbie. Hehehe. Can I create animation clip with ethan?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by SunnyChow · Aug 12, 2016 at 02:53 AM

Try DoTween. It's a good tweeter library. Or you can use Update() or Enumerator to move it frame by frame.

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 darjosh012 · Aug 13, 2016 at 11:16 AM 0
Share

@SunnyChow I tried DOTween but there is no option for using Ethan's animation. I just need to move the character just like 1 step using only a button gui (Forward).

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Animation Playback Problem 1 Answer

character animation and movement 1 Answer

Smooth 3D Dodge Roll Animation 0 Answers

Creating an animation with variables? 2 Answers

Trying to Make an Animation Work in Unity 5 0 Answers


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