• 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 xampozz · Jun 10, 2013 at 02:02 PM · animationtimemultiplesame

How do I play muiltiple animations?

I have an diamond model in my game and I have two animations, one animation that makes it look like it floats and one rotate animation that rotates 360 degrees they are played in loop but I can't make them both play at the same time

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 tsmitro · Jun 10, 2013 at 02:59 PM

Put your diamond model underneath an empty GameObject. Place Animation components on both the empty parent and diamond objects with one animation on each, i.e. the diamond would float and the parent would rotate.

Comment
Add comment · Show 5 · 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 xampozz · Jun 10, 2013 at 07:19 PM 0
Share

It dosen't work, it plays only one animation.

avatar image tsmitro · Jun 10, 2013 at 07:49 PM 0
Share

Are you in Editor or Game mode? Only one animation will play at a time in the editor. Set both to play automatically and then hit play... I've done this several times and can confirm that this works.

avatar image xampozz · Jun 10, 2013 at 08:38 PM 0
Share

I can't put an animation on the gameobject because if I make an animation it will put the object at the same coordinates where I made the animation and the diamonds are money in my game it would mean that I would need to make one animation for every diamond

avatar image tsmitro · Jun 11, 2013 at 12:59 PM 0
Share

You need to explain yourself more clearly... but if I understand you correctly, you should create a prefab of the parent and diamond, both with the correct animations, and then instantiate that prefab when you need it.

avatar image xampozz · Jun 11, 2013 at 01:03 PM 0
Share

nvm, i'll just use one animation ins$$anonymous$$d.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

15 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

Related Questions

Animation blending. (two animations, same mesh, same time) 1 Answer

Playing 2 animations at the same time 2 Answers

trigger reload animation 0 Answers

Why my animation clips are disabled? 0 Answers

Jump to specyfic time/frame in current animation using animator? 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges