• 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 Yonisit · Sep 07, 2018 at 04:39 AM · animationgameobjectanimatorgameobjects

Animation copy

So hi there, currently working on mobile-game (indie game) of my own, doing it solo(!) hehe, now, I've got a problem, when I create a new scene, I attach a prefab for it, (All I need to change each scene I create is the background, the character and the animations after I add the prefab). so I got 3 objects that needs to move a diffrent way each scene, but when I change the animation(s), it's completly changes that animation on the diffrent scene as well, exp: I change to X of an object to move from 100 to 200 in level 7, but when I apply it, it applys to level 6 as well. Now, what I tried to do is to go to my unity project in my files explorer, copy and paste to another folder the animations data (copy from level 7 animations files to level 8 animations file), and then I just delete from the object his animator, and apply the new animator I copied, then changed the X value to something else, then I checked on the other scene, it still changed the X value on the other scene as well... It's really hard work to create new animator + animations every time I want to create a new level... Could you give me some advice please? :) Would really appreciate it (!), Johny

Comment
Add comment · Show 2
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 dan_wipf · Sep 07, 2018 at 10:19 AM 0
Share

have you concidered to not animate the game object? and use ins$$anonymous$$d something like position = vector2/3.lerp ?

avatar image misher · Sep 07, 2018 at 10:43 AM 0
Share

Animation is a static thing, if you have animation for an object moving left, it will always be moving left, there is no parameters to change it (unless you wont just reverse animation by simple changing its speed to -1). So you should look to some other ways to animate your objects via scripting.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Yonisit · Sep 08, 2018 at 12:23 AM

Guys, I probably didn't explain myself well, I got 3 objects, (5 objects in level 50+ but NVM for now), they need to move a certain way, It needs to move a certain way for example the first object from the left need to move -20 in Z, then after that move 5 in X, and then back 20 in Z. I use animation to do that, and I add some valus as well, like after the Z moved back 20, I added that "Object's ready" bool in animator set to true for example. Now, my question is, how can I copy it (the animations), to another scene without changing the original one? for example: I need in level 7 for it to move -25 Z then 10 X then 25 Z, but how can I change the animation so it stays 20 Z in level 6? Can I prefab the animations? Prefab the objects themself? 'cause what I tried to do is to copy the animations+animator data, changed it's name, put it in another folder but still, what ever I do in animation level 7 affects level 6. Please, I hope you can help me ASAP I wish to publish my game already, and trust me, It'd be sooo much faster&easier with a method that I can copy animation instead of creating animator X 3 + animations X3 for each object(!) (18 things to do) every level I create that's insanely slow and hard work. Thanks for your help I REALLY appreciate it! :) @ConcanoPayno @dan_wipf @misher

Comment
Add comment · Show 3 · 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 dan_wipf · Sep 08, 2018 at 02:06 AM 0
Share

what is your animation realy about? is it a complex animation ? or just about moving the object on the x axis?

avatar image Yonisit dan_wipf · Sep 08, 2018 at 02:10 AM 0
Share

Not really complex, just shuffle like shuffle cards, there's 3 positions, right,middle, and left. the cards should shuffle the certain way I decide, like the right one move Z axis then a little to the right (X axis) then back to the same Z it was originally, but I want the other 2 objects to move a diffrent way, I mean like shuffle them so the player should pick the right card after I shuffled them.

avatar image dan_wipf Yonisit · Sep 08, 2018 at 02:16 AM 0
Share

ok so the shuffle animation will stay always the same? just if you give out the cards the position and rotation maybe of the layed out cards have changed?

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

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

Problems with Animator(Mecanim) 1 Answer

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

2D Animation does not start 1 Answer

Animation Change after changing pixel 0 Answers

Animator - There's no Animation Attached?? 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