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 Manaflow · Jun 17, 2014 at 11:01 AM · animation2dspritesmultiple

Animating 2D Character made up of 2 or more swapable sprites

My player character for my game is made up of 2-3 sprites that will be exchangeable (Head, Body, Weapon) There will be several weapons, heads, and bodies but only one of each active at a time. Currently I have this achieved by a player object with a body and head object parented to the player with the animators setup exactly the same.

All 3 objects will have the same number of animations and such and are easily stacked on top of each other. I only have one of each implemented but remaking the animators for each new object or making changes later seems inefficient.

My question is: Is there a way to use one animator to animate different sets of sprites. Like is there a way for an animation clip to have several sprites layered with which I could show/hide? Or maybe having the animation clips for each head, body, ect in an array and replace the ones in the animator when changing but keeping the transitions? Thx

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 fonko · Nov 09, 2014 at 01:23 AM 0
Share

how do you override a controller?

avatar image Manaflow · Nov 10, 2014 at 12:30 AM 0
Share

Go to Create > Animator Override Controller. Drag and drop the controller you want to override and it will load up all the animation clips the animator uses. You can then drop in any animation clips you want to override. Otherwise the original is used.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Manaflow · Jun 22, 2014 at 09:06 AM

Found a solution that works. The override controller allows different objects to reference the same animator but override the animation clips with a different set. Any clip not overwritten will play the original clip.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Alpha masking multiple 2D Sprite GameObjects with 1 Sprite GameObject 0 Answers

Fast Sprites Extraction from Sprite Sheet 0 Answers

I have an animaiton problem about sprite loading. 0 Answers

Is Unity capable of implementing Complex 2D Characters/Animation/Sprites 1 Answer

Animating a Sprite from Parent Animator 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