• 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 Kaven-Co-Games · Dec 31, 2014 at 07:55 AM · constantconstants

Why are there extra frames in Unity's Animation System?

So I dont understand why there are these extra frames in the animation window. All of the keys' tangents are on "Constant" so there isn't any smexy lerping between values, but this little chunk that is on is extremely problematic for the feel of the game.

On a side note, I've found this to be on all of my animations throughout my game. Erm.

Why?

alt text

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 Landern · Dec 31, 2014 at 08:05 AM 0
Share

That transition between lighter/darker gray is generally where the last key was placed in the animation clip. Is there something hidden or collapsed?

avatar image Kaven-Co-Games · Dec 31, 2014 at 09:07 AM 0
Share

Nothing's collapsed or hidden. :/

avatar image Kaven-Co-Games · Dec 31, 2014 at 04:42 PM 0
Share

I seem to have that same issue even with random keyframes. Let me update to 4.6.1 and see if I have the same problem.

avatar image BMayne · Jan 02, 2015 at 08:14 PM 0
Share

Just resize the timeline...

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by nicksmif · Apr 28, 2017 at 11:27 AM

check your keyed properties. if you have a key on a sprite property it may be taking up 2 frames. you only need to move that one key one frame earlier.

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 dugmcdug · Sep 24, 2017 at 12:18 AM 0
Share

This was driving us nuts! Thanks for the actual correct answer!

avatar image
0

Answer by Landern · Dec 31, 2014 at 09:15 AM

If you start a new test project, create a new clip for some gameobject(empty, cube, whatever) and you create a couple keyframes, do you have the same issue? I do not have this issue in 4.6.1

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

Answer by qbertreynolds · May 10, 2015 at 03:48 AM

I've run into the same issue with stepped animations (constant tangents). Instead of having identical first and last keyframes like you would with smooth tangents, delete the last keyframe and extend the second to last keyframe to one sample before where you would normally put your duplicate. For example, if you have a 3 frame looped animation with keyframes every fifth sample, it would normally look like so:

 A0, B5, C10, A15

Your workaround will instead look like this:

 A0, B5, C10, C14
Comment
Add comment · 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

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

7 People are following this question.

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

Related Questions

Constants in javascript 1 Answer

can/should I use a Toggle button for constant camera movement across an Axis? 3 Answers

Enumerated Colors 2 Answers

My moving object decelerates when almost reaching a next point in the bezier curve,My gameobject decelerates when reaching a next point 0 Answers

How would you do a constant moving a character controller? 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges