Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by Niggy · Mar 31, 2016 at 12:25 PM · animationanimatormecanimissueslegacyanimation

Animation system wont work + avatar issues

Hello!

I've been recently working on a game, using cube-made characters (meaning that every character is made of separate cubes, those made in unity, not in blender). I have quite a lot of problems while working with the animation system that way thought. Mecanim won't work for me, neither does old-ass legacy animation system. This is the way my character looks like: alt text

  1. Mecanim: After hours of research, still can't figure it out: how can I make an avatar of that character I made. It simply won't work. So: I attached an animator component to the player game object, made an animator with transitions and a clear state that has a transition from "Any state". As parameters from the new state to the 'walk' state, the parameters consisted in a velocity (float) one, accesed from script as well, anim.SetFloat("velocity", speed); , where the speed float is a float that gets a value whether you hold (or not) the ctrl button. In the transition the parameter was "velocity Greater than 1", and even if you wouldn't hold the ctrl button you'd still get 2.88f value. Tried to use a SetFloat of 1f, so I could see if does it acces it: it does not. I think it would be solved if I'd have an avatar. So, in my case, how can I create an avatar?

  2. Animation (Legacy): From debug mode, set the animation type to legacy, then accessed from script; went well, but when the component (animation one, without having an animator) it goes up in the sky. I have to point on the fact my player has a walker script that directly acceses character controller: tell me if is that the issue.

Hopefully you could help me out! Paul

wtfisthatshiet.jpg (144.0 kB)
Comment
Add comment · Show 3
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 Niggy · Mar 31, 2016 at 01:55 PM 0
Share

@meat5000 There you go: I'm using this script, alongside with the character controller as a walker script. This is the inspector: (point out that it happens the same both when I have animation accessed from script and when I do not) alt text

Tell me if do you need any more informations. I'm stuck with the animation system, I have just switched from 2d animations to 3d ones...

help.jpg (156.4 kB)
avatar image meat5000 ♦ · Mar 31, 2016 at 02:21 PM 0
Share

Did you try it with the Animator component and a State $$anonymous$$achine? Rather than using "Animation" component?

With Character Controller in conjunction with Animation it is often required to perform extra rotations inside the LateUpdate() function.

avatar image Niggy meat5000 ♦ · Mar 31, 2016 at 02:47 PM 0
Share

As you can see from those images, it kinda works (it set the float, yet the animation is not playing...). alt text alt text

I keep trying and trying other and other possibilities and searching on the internet, yet nothing helps me...sorry if I overcharge you with my stupid questions but it's a no-go situation for me. @meat5000

And thanks for trying to solve my problem, we're getting closer and closer (I guess :D )

EDIT: it works, but I get those errors, even if at the moment I made it so that it only runs when I run from script...It gets laggy and all this stuff. alt text

console.jpg (240.5 kB)

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by meat5000 · Mar 31, 2016 at 12:31 PM

Mecanim Avatars require Rigged models. They must have bones. The bones determine the vertex movement.

Rigged models usually require a proper parenting structure. I see all your model parts are simply a child of the main player object. This wont work.

You can animate your model using the Animation window which can perform Transform manipulation and as far as I know is the only way to animate with Mecanim without a bone structure. This is animation by curves and does not require an avatar.

Comment
Add comment · Show 2 · 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 Niggy · Mar 31, 2016 at 01:04 PM 0
Share

Well, but what is my problem all about? (the one with the animation system) Why does it bug like that? When I have the animation system unchecked, character's control script is working and it all works fine. When I check the animation component, it gets stuck at a random Y...

And about the $$anonymous$$ecanim, how can I parent it "properly"?

avatar image meat5000 ♦ Niggy · Mar 31, 2016 at 01:27 PM 0
Share

You will need to add more info. Like your Animation Controller Script and your statemachine/player Inspector screenshots.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Animation Legacy behavior -> Mecanim animation 1 Answer

Mecanim state that keeps last pose? 0 Answers

Problems with using the same Animator Controller on multiple objects. 0 Answers

New Unity UI System animation question... 0 Answers

is it possible to convert generic animations to humanoid ones? 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