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 /
avatar image
0
Question by RealismWorld · Dec 27, 2017 at 07:51 PM · animationanimatorparentlocal space

Animation plays in preview but not in game

I know this topic has been asked a lot. When I enter the PlayMode the animation doesn´t play. I´ve tried to change the "apply root motion" button and checked if the object is set to static like in similar conversations but it still doesn´t work. The reason of my problem is neither the AnimationController script nor the Animator window because it used to work before. I hope you understood my problem. Do you have any idea? Thanks! Here is a short clip: https://drive.google.com/open?id=1X_IMyyCSbHtwlky1l3ZZkogo9KLuex62


P.S. Two strange things: 1. If I click the object having the animator component attached and enter PlayMode I can see a circle in the scene view moving like my animation should do. The object doesn´t "follow" this circle. Maybe I have to apply the object to the animation somehow. 2. When I put the affected object out of it´s parent and hit play, the object jumps to its old local position. (The transform changes when being a child of a other object) When I watch this object in scene view at its old position it bahaves almost normal. Sometimes it suddenly changes its y-rotation by 180°. alt text

alt text

The third picture is in the comments.

problem1.png (71.1 kB)
problem2.png (164.0 kB)
Comment
Add comment · Show 12
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 zero_null · Dec 28, 2017 at 09:04 AM 0
Share

Check your animator component. It might be disabled. A gif of what you are experiencing will help !

avatar image RealismWorld · Dec 28, 2017 at 12:09 PM 0
Share

alt text

When I hit play and the animator component is deactivated the "Glock 17" remains at his normal location but no animations are played

problem3.png (177.1 kB)
avatar image SergeiKu · Dec 28, 2017 at 12:12 PM 0
Share

Can you show your animation controller and animation what inside?

avatar image RealismWorld SergeiKu · Dec 28, 2017 at 12:21 PM 0
Share

alt text Did you mean the Animator Window. I don´t think the script and the animator are the problem because you can see bars beneath each component in the animator window when you are in playmode and these bars work perfectly when I press the corrosponding input button

animatorwindow.png (65.2 kB)
avatar image haruna9x SergeiKu · Dec 28, 2017 at 01:17 PM 0
Share

This is not an answer.

avatar image haruna9x · Dec 28, 2017 at 01:22 PM 0
Share

You can make a clip of what happened. Try to show us the Animator window, and what you think may be the problem.

avatar image RealismWorld haruna9x · Dec 28, 2017 at 02:46 PM 0
Share

I don´t know how to upload a clip here because the max size is something about 500kb

avatar image haruna9x RealismWorld · Dec 28, 2017 at 03:08 PM 0
Share

You can post anywhere, just we can see it. Wait...Why do you pull the gun out of its parent, it may be a problem, I have not done so before.

Show more comments
avatar image RealismWorld haruna9x · Dec 28, 2017 at 04:47 PM 0
Share

https://drive.google.com/open?id=1X_I$$anonymous$$yyCSbHtwlky1l3ZZkogo9$$anonymous$$Luex62

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by RealismWorld · Dec 30, 2017 at 09:01 AM

I finally found the answer why the animation is not playing. The reason is that I used a Animator in the Camera object where I wanted to switch between two weapons. This doesn´t seem to work for 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

196 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 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 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 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 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

Make animation go to child.,Make animation go to child 1 Answer

Parent animation animating child makes child's own animation not work 0 Answers

Children won't animate 2 Answers

2D Animation does not start 1 Answer

Animation with parent changes coords on play 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