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 Blizzard_jedi · May 16, 2013 at 08:46 PM · animationmecanim

Mecanim, using an empty state

Hi everyone! I'm currently working on an animator state machine and a controller script. I have a set of different idles, which I have to organize properly. So I've decided to create a sub-state machine, place an empty dispatcher state there and use it to control idles. The idea is simple: when we are in the empty state, a random float is calculated. According to this float we set an integer parameter to the appropriate value. This should initiate one of the transitions from the empty state to an idle. As soon as the idle finishes playing, another transition returns us back to the empty state... and so on...

In fact this structure works similar to what is expected, but my character suddenly falls through the ground and then restores his actual position - this happens very often. I suppose, this is because unity tries to play the null animation in the empty state.

1) Is it possible to make this structure work correctly?

2) How can I use empty states in mecanim without getting bugs?

Comment
Add comment · Show 6
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 T.Tondee · Nov 18, 2013 at 07:52 PM 0
Share

Just wondering if you found a solution to your problem. I am suffering from the same "bug". $$anonymous$$y character falls through the ground during a transition into an empty state.

avatar image Blizzard_jedi · Nov 18, 2013 at 08:16 PM 0
Share

Well, in fact, it is helpful to read about $$anonymous$$ecanim layers. At first, I didn't get this point. But when I realised, that $$anonymous$$ecanim layers are similar to Photoshop ones, things became much clearer.

Returning back to the subject - layer, that plays an empty state is like a fully transparent layer in Photoshop. And here's the idea: if you add (in PS) any other non transparent layer X, you will see exactly this layer X. The same with $$anonymous$$ecanim: if you have a layer, that is playing an empty state, add another layer with some valid state playing. You can't play an empty state itself, but you can mix it with a valid state and play them together.

avatar image T.Tondee · Nov 18, 2013 at 10:38 PM 0
Share

I have a animation playing one layer below the empty state and it still has the issue. This is a recent problem since upgrading to 4.3 so something might have changed with their blending layers during transitions.

avatar image _Elros_ · Nov 26, 2013 at 08:00 PM 0
Share

Hello, I think I have the same problem in Unity 4.3 too...

I have created a layer to animate the character turns on the upper body with override blending. The turns to the right and left start correctly from an empty state, but during the transition back to this empty state seems that the character tries to return to the T-pose, ins$$anonymous$$d of blending with the lower layers properly.

I'm with you, I think this is a Unity 4.3 bug.

avatar image Polymo · Dec 31, 2013 at 03:51 PM 0
Share

i have the same problem, animations are ugly when transitioning back to empty (on an overriding layer). Since 4.3. Any way to make the devs notice this? Or a workaround?

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by T.Tondee · Feb 10, 2014 at 07:31 PM

This was a bug with Unity and has been fixed with 4.3.3 as far as I can tell, hope this helps with everyone else's problem because it fixed mine.

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.

Follow this Question

Answers Answers and Comments

16 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

Related Questions

Mecanim animation issue 1 Answer

Can the mecanim animators Controller var be set in code? 1 Answer

Using Override Animation Controllers (NOT WORKING) 0 Answers

Random float parameter for idle animations 1 Answer

Multiple Animation Events Parameter Mecanim 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