Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by CeejayZSmith · Nov 17, 2012 at 06:58 PM · animationframerewind

Need help with animation rewind

i want to make a character walk i have the animation set up and the character i have not started scripting it yet but i want to know how i can rewind to a certain frame i know how to use animation.Rewind(); but how do i rewind to a specific frame for example when the character walks the walk animation loops until i let go then i want it to rewind to the frame where he is stud still instead of just snaping there straight away. thanks

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by lil_billy · Nov 17, 2012 at 08:54 PM

So you are about to learn that unity's animation system is a pain in the ass

The problem is animation does not actually play when you tell it (as far as I can understand its arbitrary when it plays)

because of this we are rather limited in what we can do with animations

in other words what you are asking is for is impossible you cannot access the frames of an animation (when it comes to playing them in code)

However I get the feeling that your actual problem is different than what you are saying

When you import a model it brings all of its animations in as one large timeline When you import a model you can click on it in the project heirarchy

there you can access that timeline and you can divide it up based on the FRAMES into new individual clips. Those clips you can then play in your code whenever you want so you can divide up your walk animations from say your punch animation

and when you play it will only play that unique clip.

I tried to find the page that explained this but its missing so heres a video http://www.youtube.com/watch?v=p25SFf6Kf0g

Comment
Add comment · Show 6 · 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 CeejayZSmith · Nov 17, 2012 at 09:01 PM 0
Share

i have divided the animations but what i want to do is when im walking the animation plays but then when i let go of forward ins$$anonymous$$d of the legs snaping straight back to play the idle animtion i wanted it to rewind to the last time the legs were both straight or almost straight then play the idle animation so it looks more smooth

avatar image lil_billy · Nov 17, 2012 at 09:12 PM 0
Share

then either you need to divide your clips better or animate the model better

actually I think im getting confused with what you are asking, please describe your animations better.

This probably could be resolved with wrapmodes

avatar image CeejayZSmith · Nov 18, 2012 at 01:37 AM 0
Share

Sorry for the late reply , what I want my character to do is the same thing people do in real life when you walk your les move but when you stop your legs bring them selfs together so You can stand ,what I'm trying to achieve is this ins$$anonymous$$d of me character going from his legs spread out him standing I want him to bring his legs back to part of the walk animation where his legs are together

avatar image lil_billy · Nov 18, 2012 at 05:06 AM 0
Share

then you have your walk animation and what is known as an idle animation and then you CrossFade between them

avatar image Loius · Nov 18, 2012 at 05:49 AM 0
Share

Technically, frame X of an animation can be reached by sampling the animation at time = (fps * x)/clip.length.

Show more comments

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.

Follow this Question

Answers Answers and Comments

11 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

Related Questions

Select frame for Animation 1 Answer

A quick question about animation frames 1 Answer

Play sound on anim frame 1 Answer

How can I do frame by frame hitbox control for a 2D fighting game character? 0 Answers

ANimation doesn't rewind on animation.Stop 3 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