0
\$\begingroup\$

So I work with my colleague A and he has (for example) a basic scene enter image description here

A exports the scene as package to give me. enter image description here

and on my pc with new project I imported the package enter image description here

everything is fine enter image description here

and I make adjustment on material, and rename the scene and material enter image description here

then I export the scene as package as well enter image description here

now back to A's computer, he imports my package into his project with that basic scene enter image description here

Wow ! In my scene, the new material is not assigned rather is the old red one. enter image description here

How is this happening ? Please save me thank you

\$\endgroup\$
6
  • \$\begingroup\$ In the recipient's project, can you open the Assets folder in the file browser, and find the ".Meta" files associated with each of these materials? Open them up in a text editor and find their GUIDs. Compare these to the GUID for the material in the source project. \$\endgroup\$
    – DMGregory
    Commented Jun 2, 2021 at 11:01
  • \$\begingroup\$ thanks for the reply, I checked it, and they are different though, bu how can I solve this ? (maybe not export as package ?) \$\endgroup\$ Commented Jun 3, 2021 at 15:59
  • \$\begingroup\$ My best guess is that Unity changes the GUID of the imported item when it detects a collision with an existing asset. You might want to try duplicating the material and renaming the duplicate, instead of renaming the original. That way it should get a new, non-colliding GUID. \$\endgroup\$
    – DMGregory
    Commented Jun 3, 2021 at 16:01
  • \$\begingroup\$ Hmmm, good guess, I should give it a try, thanks a lot, I'll reply you should anything happen \$\endgroup\$ Commented Jun 4, 2021 at 2:21
  • \$\begingroup\$ If good things happen, feel free to post it as an Answer that can help future readers too. 🙂 \$\endgroup\$
    – DMGregory
    Commented Jun 4, 2021 at 2:33

1 Answer 1

1
\$\begingroup\$

My best guess is that Unity changes the GUID of the imported item when it detects a collision with an existing asset. You might want to try duplicating the material and renaming the duplicate, instead of renaming the original. That way it should get a new, non-colliding GUID. (from DMGregory

\$\endgroup\$
1
  • \$\begingroup\$ This answer would be better if you wrote it in your own words, describing (or illustrating) the steps you took to solve the problem. \$\endgroup\$
    – DMGregory
    Commented Jun 4, 2021 at 15:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .