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 baneand · Dec 03, 2013 at 10:52 AM · animationanimatormecanimstate

Is it possible to make empty, passing state in mecanim?

Hi,

As topic says, is it possible to make state in mecanim which will be used as passing state for other states? In my case, I have a few fighting states and regular walking, idle, turn around etc. states. I want to make something like FightTransitionState so that when character gets into fighting it is then decided which fight move (state) will be next. It would be cleaner if I have that kind of state which would be used as "base" state for other fight moves. Now, if I have for example 20 moves and I want to be able to connect them all or some of them, it would make spaghetti in my animator window. Cleaner solution would be to have a base state and a star like graph which will represent fight moves.

I have read few answers and I tried myself something with empty state but usually character falls through or some other bug.

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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by komodor · Dec 03, 2013 at 12:17 PM

yes it is possible, but does not work, because the empty state interrupts blending

for me http://docs.unity3d.com/Documentation/ScriptReference/Animator.CrossFade.html is the most comfy path now

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 mujpir · Dec 03, 2013 at 12:21 PM

If i understand you correctly , your problem is connecting every run , idle , walk , ... to every fighting state ??? If so , You should place fighting states in an upper layer ad make a transition from 'any state' to every fighting state . 'any state' means which state our animator is currently on .This way, it wouldn't need to create a transition to fighting states for every animation in base layer . Hope it solve your problem

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 baneand · Dec 03, 2013 at 02:43 PM

'Any state' solution is what I am thinking of currently, and it is probably the best solution at the moment. Problem still persists in transitions from fighting animations to idle, run or walk. Or between fighting animations. There will be lot of fighting animations which need to be connected. When I add new animation I would need to connect it to many of the current animations. If I have some central state I would be able to connect only to that state.

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 komodor · Dec 05, 2013 at 01:23 AM 0
Share

there is (and maybe it will be changed in future) problem with any state as the state you just got in is also any state, so you might get problems with animations trying to morph to itself

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

17 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

Related Questions

How to generate Mecanim Sub-state namehash? 6 Answers

Not able to use a Vector as a condition in Mecanim? 2 Answers

How do I make the transition between two states in the "Animator" happen instantly? 3 Answers

How to get fileID information so i can just edit Mecanim Animator through script? 2 Answers

Continuously Play Animation Forwards and Backwards with Mechanim 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