• 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 patch24 · Mar 12, 2012 at 01:06 AM · animationclipanimationstate

Multiple Animation States using a single clip?

Hi, I was wondering if anyone has advice on how to set up a single animation clip with multiple AnimationStates? I would like to have one state using a mixing transform, and one state without it. Right now I can duplicate an animation clip and add it to the list at run time, but it doesn't honor my new animation state changes....(i.e. one with a mixing transform and one without.) Otherwise, I'll just have to duplicate the animation in the editor and create a new anim state that way....but it seems to be a bit less ideal when it comes to making changes on the original animation. 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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Owen-Reynolds · Mar 12, 2012 at 04:28 AM

Duplicating in the editor isn't bad. Just use Split and add "walk" and "walkWMixing", reusing the same frames. Hardly uses any extra space at all.

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 patch24 · Mar 12, 2012 at 09:36 PM

I found a post (link below) that includes an editor script that will copy over animation curves from your original imported animation onto your duplicate. You just have to be sure to rename your duplicated animation with a "_copy" appended to it. So, lack of space savings aside, at least you can still make changes to your original animation and then use this script to copy over the updated anim curves. The other thing you get is that the duplicated anim is not write protected and you can use events etc with it. Thanks Rune for the script!

http://answers.unity3d.com/questions/8172/how-to-add-new-curves-or-animation-events-to-an-im.html

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Get list of animation clips 1 Answer

[Solved I think...] Sprite Animation Question 0 Answers

Can I make animations snap to a frame? 2 Answers

'speed' is not a member of 'Object'. when pausing animation 0 Answers

Issue with Animation.AddClip() firstFrame lastFrame possibly bugged. 0 Answers

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