• 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 DustyScreen · May 02, 2016 at 11:43 AM · mecanimtransitionssprite animation

Mechanim: Sprite animation transitions

I'm using Mechanim to control spritebased frameanimations. That's animations where the sprite changes each frame.

I'm currently doing transitions by making a separate state for the transition, like this:

[ Animation "A" ] ---EmptyTransition---> [Animation "A-to-B-transition"] ---EmptyTransition---> [ Animation "B" ]

This is because I don't know how to make Mechanim's transitions to swap sprites. An ideal flow would be more like this:

[ Animation "A" ] ---TransitionPlaying[Animation "A-to-B-transition"]---> [ Animation "B" ]

Is this by any means possible?

Any ideas or thoughts are most welcome :-) Thanks in advance!

Comment
Add comment · Show 5
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 · May 02, 2016 at 12:00 PM 0
Share

I don't know where your problem is. If you have a sprite sheet and create multiple animation clips from it, and assign these clips to the animation states of your animation controller, it should be no problem transitioning between states. Read the User $$anonymous$$anual for the animation system if you haven't already.

avatar image DustyScreen Cherno · May 02, 2016 at 12:16 PM 0
Share

I’m very sorry, if I wasn’t clear in my question. But let’s say I have the following sprites:

 idle0
 idle1
 idle2
 idle3
 idle4
 idle5
 
 idle-to-jump0
 idle-to-jump1
 idle-to-jump2
 
 jump0
 jump1
 jump2
 jump3


The idle-cycle plays. Then the player hits jump. Now I want to play 3 idle-to-jump-sprites and after that play the jump-cycle.

So the idle-to-jump sprites is a transition. How do you use $$anonymous$$echanim’s transition-functionality to play this transition? Is this possible?

Please let me know, if there are any details I should be more precise on. Any help would be valued! :-)

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

44 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Altered Mecanim parameters reset the current state back to the default state. 0 Answers

Mecanim, Share Transitions? 0 Answers

Previewing Mecanim Transitions from a Blend Tree 0 Answers

Checking Transitions in Animator 0 Answers

Mecanim transition condition can't have both bool and trigger? 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