Quantcast
Channel: Question and Answer » file
Viewing all articles
Browse latest Browse all 103

How can you duplicat folders and not share old dependencies in Unity?

$
0
0

I have a folder with some prefabs, materials, textures, FBX, etc. My Prefabs refers to FBXs and Materials in this folder. Can I clone this folder in a way that it will save those local dependencies?

For example:

  • BaseFolder is located: Assets/BaseFolder
  • It contains a prefab: Assets/BaseFolder/Prefab.Prefab
  • Prefab is linked to a material: Assets/BaseFolder/Material.MAT
  • That material is liked to a texture: Assets/BaseFolder/Texture.TGA

Now I duplicate or clone BaseFolder and rename it CloneFolder. This is what my dependencies should look like:

  • Folder is located: Assets/CloneFolder
  • It contains a prefab: Assets/ CloneFolder /Prefab.Prefab
  • Prefab is linked to material: Assets/ CloneFolder /Material.MAT
  • The material likes to texture: Assets/ CloneFolder /Texture.TGA

But, by default, when I duplicate folders dependencies refers to the old resources with old paths.

Here’s what it looks like:

  • CloneFolder is located: Assets/CloneFolder
  • It contains a prefab: Assets/CloneFolder/Prefab.Prefab
  • Prefab is linked to a material: Assets/ BaseFolder /Material.MAT That
  • material is liked to a texture: Assets/ BaseFolder /Texture.TGA

You can see By the bolded text where the issue is. I really need my new folders to be independent.

I can do it manually in editor for every object. But I have many objects and many dependencies, and I need to automate this process.

Could there be import setting within unity to deal with importing prefabs? There are some for every other imported asset: Textures, Models, Animation, etc. Hopefully there is a graceful solution to this.

I’ve tried quite a few tricks, such as exporting my package and importing it. renaming FBXs and Materials, even deleting meta files and duplicating in Windows rather then using the Unity editor and nothing works. I’m kind of at a lost here!

Rosalie M.


Viewing all articles
Browse latest Browse all 103

Trending Articles