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 question was closed Sep 22, 2013 at 06:58 AM by Fattie for the following reason:

Duplicate Question

avatar image
0
Question by dansav · Sep 21, 2013 at 11:07 PM · charactercomponentscopy

copy all components from one character to another

I have a character that has many different components on different bones. I revised the model and want to bring in a new one and was wondering if there's some easy way to copy all the components from the old character to the new one. I can't swap the meshes because the mesh was output from a different program the second time and seems to have a different mesh structure, but the bone hierarchy is the same.

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 2011juve · Feb 25, 2014 at 09:26 AM 0
Share

Use this

Component[] Components = Selection.activeGameObject.GetComponents("Component") as Component[] ;

And

U

nityEditorInternal.ComponentUtility.CopyComponent(copiedComponent);

UnityEditorInternal.ComponentUtility.PasteComponentAsNew(targetGameObject);

avatar image aeroson · Aug 18, 2015 at 01:19 AM 0
Share

A simple little editor extension to copy and paste all components: https://gist.github.com/aeroson/2f1b7abc1727c5608519#file-componentscopier-cs

The one in asset store is much more advanced, can copy hiearchies and much more.

1 Reply

  • Sort: 
avatar image
2
Best Answer

Answer by DaveA · Sep 22, 2013 at 12:04 AM

Get the Component Copier from the Asset Store

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

Follow this Question

Answers Answers and Comments

18 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

Related Questions

replace character mesh with new one, or transfer components from old to new mesh 0 Answers

How to copy the Angry Bots Character from Angry Bots Project to a new one 1 Answer

Transferring animation clips 0 Answers

I want my 2D character to fall down as chain after he dies 1 Answer

Instantiated prefab missing ECS components 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