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 drodrii · Dec 04, 2014 at 12:01 AM · animationgameobjectsprite

Animation - Not Synced!

Hello everyone.

So, I'll make this short. Here's a video of my set up of the animations. I showed just a couple of GameObjects but they're all pretty much the same.

Its on dropbox so bare with me. Video of OutofSync Animation

I've made 4 gameObjects and their respective animations.

So, the idea is that I press a button and I call an Animation Manager which does this:

 public void SetAnimation(bool isAnimating){
 
     _anim.SetBool("isMoving",isAnimating);
 
     if(_object1Controller != null)
         _object1Controller.SetMoving(isAnimating);
         
     if(_object2Controller != null)
         _object2Controller.SetMoving(isAnimating);
 
     if(_object3Controller != null)
         _object3Controller.SetMoving(isAnimating);
 
 }

Each Controller is attached to their respective gameObject but when I click the button, all animations start but they're not playing in sync. As I made em' There's 4 frames for each animation.

SetMoving is the same for all of them:

 public void SetMoving(bool isAnimating){
     _anim.SetBool("isMoving", isAnimating);
 }


Is there a way to sync all animations? :/

*** I've checked the transitions. They all have the same transitions and speed.

Extra Info: The animations work good on my PC(testRun) unless I click the button like a mindless lunatic, I made a build for Android and installed it, when I run the animation on the device it does goes off...

Thank you for your time.

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 jenci1990 · Dec 04, 2014 at 01:08 AM 0
Share

I think the problem is in your Animator. Check the Transitions, and the animation speeds.

avatar image drodrii · Dec 04, 2014 at 01:33 AM 0
Share

@jenci1990 thank you for your time and reply. I've checked the transitions. They all have the same transitions. What I saw is this: The animations work good on my PC(testRun) unless I click the button like a $$anonymous$$dless lunatic, I made a build for Android and installed it, when I run the animation on the device it does goes off...

avatar image Baste · Dec 04, 2014 at 08:18 AM 0
Share

Do you have the same animation controller assigned to each animator? If not, try that.

avatar image drodrii · Dec 04, 2014 at 02:58 PM 0
Share

@Baste Sorry for the late reply.

The thing is that I have one Animation$$anonymous$$anager, this animation manager is attached to the base layer of the gameObject.(parent) I've got other 3 child gameObjects of this one. I call the Animation$$anonymous$$anager and inside, it calls the controller of each child...each gameObject has a different animation but put together all 3 have a synced animation.

avatar image drodrii · Dec 04, 2014 at 03:05 PM 0
Share

@Baste

So, to put it understandable, Imagine I have a gameObject of a Human. I have 3 childs representing: Head,Torso and Legs. I added clothes as the child gameObjects. All of them have the same transitions. I don't think I can use the same controller because they have different sprite animations....When I walk, everything is out of sync yet the animations are created at same sampleRate and when I added the animations I left the same space between frames in all of the animations....

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by xeonheart · Nov 19, 2021 at 07:23 PM

hey sorry, did this ever get solved, having the same problem, even with the new version as of today 2021.2.3f1.... still not working, and the unity animation layers not working either... thanks unity :(

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

28 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

Related Questions

After working in animator controller, sprite won't appear in game mode 0 Answers

Object's sprite and collider are not at same position as transform 1 Answer

Animator - Stoping && Playing from Specific frames. 5 Answers

Changing the alpha channel of a sprite using the new Unity sprite system 1 Answer

How do I call sprites from spritemaps frame by frame using Mechanim? Is there another solution? 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