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
6
Question by WFC · Feb 11, 2014 at 07:57 PM · mergematerial.

Is there a way to merge duplicate materials and textures

I have a project that has several other projects that have been added to it. The added projects contain some of the same models, prefabs, materials and textures, but they are in different folders. Is there a way to select all of the materials using the same name and then tell Unity which instance of that material to use and remove the others along with the duplicate textures? The project is getting bloated and I need to get the overall project size down.

Comment
Add comment · Show 3
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 Torbach78 · Dec 23, 2014 at 08:06 PM 1
Share

A solid tool idea! would +1 vote if I had the power

Deleting redundant materials and hunting through hundreds of prefabs to replace 'missing' attachment is daunting; a fast re-map tool is crucial for Unity's growth as developers tackle more ambitious product

  1. select material(s)

  2. remap to -> material

  3. delete old material from project

I'll have to find out if my $$anonymous$$m has any solutions

avatar image MrG · Feb 21, 2015 at 07:11 PM 1
Share

Is there a solution to this? Often when importing assets from the same vendor, there is considerable reuse of the same materials, textures, etc.

There has to be a way to clean this up.

If an inco$$anonymous$$g asset file has the same name and checksum, use the existing one.

avatar image nastasache · Apr 28, 2015 at 05:51 PM 0
Share

I am also interested in a solution for this issue.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by HalversonS · Nov 05, 2015 at 06:31 PM

Bump. I figured since it remaps a material when you move its file location within the project tab that moving similar names into the same folder would remap the materials and then delete the final duplicate.

This isn't the case however, it only moves in one material and leaves the other. Then if you attempt to move one of the same name to the same folder you get the cancel cursor.

I would expect this to be easy to incorporate... maybe the system changes the name by appending (random-unused-string) momentarily then remaps the material and uses stirstir or stircomp excluding the added parenthesized string, then deletes that material. Or a right click option to remap to another material.... or drag a material on top of another one. Obviously there will be limitations and there's more to it then that. But, it would make life much easier!

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

23 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

Related Questions

How to merge two .unity3d files without using assetBundle 0 Answers

Merge 2 objects together. 4 Answers

Is it possible to merge 2D colliders? 2 Answers

How to properly merge two projects, when one of them was derived from the other, which results in several conflicting assets? 0 Answers

Glass Material 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