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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by AfrOn · Jan 26, 2015 at 02:18 PM · animationchildanimationcurvenotplaying

Child doesn't play animation. Any help?

I) Introduction

Good night everyone,

First of all, I would like to apologize for any grammar/orthography mistake. English is not my native language. Having said that, lets start:

II) General problem description

I have a game object called "gun" with 5 children. One of these ("left hand") doesn't play an animation, but the rest of the children does.

III) Detailed problem description

I made a gun in blender and imported it to Unity. Then, I made a prefab which has an empty game object (for scripting purposes) as parent with the gun parts and two hands ("left" and "right" hand, made with cubes) as children, all with the same level in the hierarchy. Later, I made some animations, like "Fire", "Idle" and "Reload" with this prefab. The problem comes when I play the "Reload" animation in-game. All the children play the animation but "left hand" doesn't. This only happens in the "Reload" animation, the other animations play properly.

According to the animation window, the "gun" game object should do this (Youtube video), but in-game the gun only do this (the "left hand" doesn't play the anim).

IV) Additional info

  1. No changes were made to the hierarchy while making the animations. I checked this by re-making the animation or making other anim, but the problem with the left hand wasn't fixed.

  2. I made ridicolous changes to the "Position", "Rotation" and "Is active" properties in the "Reload" animation. Nor "Position" or "Rotation" were affected in-game (but did in the animation window) but the "Is active" property did have a change in-game.

  3. After erasing the "left hand" curves in the animation window, the left hand game object had the same effect in the animation window as in the in-game problem. This took me to think that the left hand isn't playing any anim (Duh!) and it is not only making a random anim.

  4. The left and right hands have the same properties in the inspector.

  5. The left hand is a non-static object (Inspector).

  6. In other anims, the left hand seems to have no problem (because it only makes a small amount of anim so I can't tell if it is making something that it shouldn't).

  7. The animation component is attached to the parent.

  8. Yes, this is my first question. Thank you for having read all the question 'till here. Have a nice day.

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

1 Reply

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

Answer by AfrOn · Jan 28, 2015 at 06:26 AM

I have just fix it. Because the "left hand" was originally a copy of the "right hand" with a different name, I tried by creating a new "left hand" gameobject. It works fine 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

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

2 People are following this question.

avatar image avatar image

Related Questions

Multiple files for animation - play issue 0 Answers

Animation not found, but animation plays. 2 Answers

Animations from 3DS Max not playing 1 Answer

code animation on multiple properties using one AnimationClip 1 Answer

Expose a C# property for Animation Curve 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