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 CgShady · May 10, 2012 at 09:58 PM · animationrangeframeclipkeyframe

Changing Animation Looping Range

Hi,

I'm used to using 3dsMax, in which we have something very similar to what exists in Unity, in terms of looping modes and keyframe ranges.

Though, I've been trying to use Unity's built-in Animation tools with no luck.

Say that I have created a new clip for a simple gameobject, and that I added a curve to its rotation xyz. The default range (which appears in color) is 1 second. So if I want to add a couple of keyframes at say frames 0 and 30 (0.5 sec), the animation will play from frame 0 to frame 60 before it loops. Also, very often, if you scrub through time farther than frame 60, it'll extend the range a few frames.

Furthermore, if you set the loop mode of the animation clip to 'loop', then the range will always expend to the farthest you scrubbed in the timeline.

I have looked in the Script Reference, it seems that this 'range' property isn't exposed anywhere.

Isn't there a way to edit the ranges in editor ? I want to make a 360 degrees loop that repeats properly. I need to set the range to frame 0-59 or 1-60 so that I skip the frame where the rotation is the same as last (or next).

Am I going to have to go back in 3dsMax ? I wish I could do this in Unity :)

Thanks for reading..

Comment
Add comment · Show 2
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 DannyB · Jun 10, 2012 at 09:43 AM 0
Share

Hey - I wanted to submit a similar question. The solution provided below seems inadequate. Did you find a solution? $$anonymous$$y looping animation continues way beyond my last keyframe and I have no idea where is the setting to let Unity to "end the animation here".

avatar image numberkruncher · Jun 10, 2012 at 11:29 AM 0
Share

@DannyB There doesn't seem to be a proper way to achieve this. The hack I referenced below worked for me, but the only other alternative seems to be recreating the animation from scratch and ensuring that you don't accidentally extend the length of the animation. I am sorry that this isn't better news. I wish there was a solution to this annoying problem.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by numberkruncher · May 10, 2012 at 11:44 PM

I had exactly the same issue but the following advice seemed to work for me:

http://answers.unity3d.com/questions/229783/animation-editor-trimming-tail.html

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 CgShady · Jun 10, 2012 at 07:44 PM 0
Share

Unfortunately, it didn't work for me. I'm back to 3ds$$anonymous$$ax when it comes to deal with animations more complex than door openings... Hopefully this will find a fix in a future release.. Unity's built-in animation editor has some good potential.

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

6 People are following this question.

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

Related Questions

How to change the intervals between frames in the animation window? 1 Answer

Extract keyframe info from animation clips 2 Answers

Trimming down fbx animation, why is unity adding extra frames? 1 Answer

Extra frames being added to animation 1 Answer

[SOLVED] AnimationState.time doesn't work and returns NullReferenceException error 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